Basic clean architecture setup
-
create .env file
- create values for
PORT,DATABASE_URL,DATABASE_NAME,REDIS_PASSWORD,REDIS_HOST,REDIS_PORTin .env- or run export PORT= e.t.c on cli
- create values for
-
run
npm run dev
/healthPOST- /api/v1/blogsGET- /api/v1/blogsGET- /api/v1/blogs/:idUPDATE- /api/v1/blogs/:idDELETE- /api/v1/blogs/:id