This repository houses the backend code for a lightweight, user-friendly blog platform built with NodeJS and express.This project allows users to:
⚪ Create and manage blog posts: Write, edit, add titles, bodies, and categories.
⚪ Comment on blog posts: Leave comments on a post.
⚪ User roles and permissions: Differentiate between admins, authors, and readers with varying access levels.
✔️ User signup and login with secure hashing and jwt authentication
✔️ Users with Author permissions can create posts
✔️ Users with admin permissions can create / delete categories
✔️ Users can comment on a blog posts
-
Clone the project
git clone https://github.com/Ayine-nongre/Blog-API.git
-
Change to project directory
cd Blog-API/
-
Set up enviroment variables in env file
DB_USER, DB_PASSWD, PRIVATEKEY
-
Install packages used in project
npm install
-
Start server
nodemon app.js
This project is a basic implementation and lacks some advanced features like search, analytics, or social integrations. Feel free to extend its functionalities and tailor it to your specific needs.
I hope you find this project useful 😄