- Express
- TypeScript
- FireStore
- Clone repository from https://github.com/confidentmeerkat/express-blog.git
- Install node_modules
yarn install - Rename .env.sample file to .env
- Create a new project in firebase and create service account credential json file and save it in the project root folder as
firebase-account.json.
- POST:
/auth/registerRegister a new user - POST:
/auth/loginLogin a user - GET:
/usersGet list of users - POST
/usersCreate a new user - GET:
/postsGet list of posts - POST:
/postsCreate a new post - GET:
/posts/:idGet post for a given id - PUT:
/posts/:id/Update post for a given id - POST:
/posts/:id/commentAdd comment to the post - Like:
/posts/:id/likeToggle liked for a user