JSON API implemented with Typescript. Allows to manage anonymous blogs and their comments.
- run
npm install
- restore database from database.sql file in project folder
- Use .envexample as guide to connect to PostgreSQL
- run
npm run compile
- run
npm run start
- Endpoint of blogs is localhost:3000/blogs/:id
- Endpoint of comments is localhost:3000/blogs/:id/comments/:id
- API only allows JSON
Examples of the usage of the API can be found as Postman documentation here