Basic clean architecture setup
-
create .env file
- create values for
PORT
,DATABASE_URL
,DATABASE_NAME
,REDIS_PASSWORD
,REDIS_HOST
,REDIS_PORT
in .env- or run export PORT= e.t.c on cli
- create values for
-
run
npm run dev
/health
POST- /api/v1/blogs
GET- /api/v1/blogs
GET- /api/v1/blogs/:id
UPDATE- /api/v1/blogs/:id
DELETE- /api/v1/blogs/:id