A Blog API using Node.js + TS, with postgres for the DB.
https://documenter.getpostman.com/view/13110445/2s9YC1Wu8c
https://blog-api-rwoy.onrender.com/api/v1
- NodeJs (TypeScript & Express)
- Postgres for database
- Sequelize for database ORM
- Postman
- Render for hosting
- Users can create an account with:
- email address
- password
- first name
- last name
- Users can get all blog posts
- Users can get a specific post
- Users can add a post
- Users can edit a post
- Users can delete a post
- Implementation of Pagination and the search functionality
To run the app locally, follow the steps below:
- Postgres installed
- Nodejs installed
- Clone this repo
git clone https://github.com/timilehin2000/Blog-Api.git
- Change Directory
cd blog-api
- Install packages
yarn
- Initiate
.env
file
cp .env.example .env
- Modify
.env
file with your correct database credentials and desired Port
To run this application, execute:
yarn run dev
This Project is an API that has the functionality of registering a user, login a user and creating protected route that can only be accessed by the logged in user. In which user can upload, fetch, edit and delete a post.