REST API for a content management system that has the following features:
-
Posts: Create, Delete, Edit, and List posts
-
Categories: Create a post category, List all post categories, Edit a post category, Delete a post category.
-
Users: Create a user, List all users, Delete a user, and Edit a single user’s profile information.
-
Bearer Token authentication
-
Using a third-party application like passportJs, implement a social login (Twitter, Google, Facebook).
-
Admin: real-time dashboard endpoint that uses socket to get and send real-time data from/to a data source, such as a database or external API.
For this project, I used the following:
- Express and Typescript
- SQLITE for Database
- PassportJs for google,facebook and twitter auth
- JWT for Authentication and Authorization
- Socket io for real time
- Joi for input validation
https://documenter.getpostman.com/view/8053960/2s9YeN28XR
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:5000 to view it in your browser.