The project assignment for roadmap.sh
URL of the assignment in roadmap.sh:
https://roadmap.sh/projects/blogging-platform-api
This API makes CRUD operations on a postgres database to handle different blog posts.
Each post has a title, content, category, tags, created_at and updated_at properties.
There are no authentication or authorization.
-
Clone the repository:
git clone https://github.com/ilia-abbasi/Blogging-Platform-API.git cd Blogging-Platform-API -
Install dependencies:
npm install
-
Create the
.envfile in the root of the project and set the variables:PORT=your_port DB_USER=database_username DB_HOST=database_host DB_NAME=database_name DB_PASSWORD=database_password DB_PORT=database_port
-
Create the
poststable in your database:npm run setup
-
Run the server with:
npm run start
-
Send requests using Postman.
- dotenv
- express
- express-validator
- lodash
- morgan
- pg
The source code is formatted with Prettier.
Read the docs here.
Blogging-Platform-API is licensed under the GPL-3.0 license.