https://github.com/ayine-nongre/blog-api
https://github.com/ayine-nongre/blog-api
blog-api mysql nodejs
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ayine-nongre/blog-api
- Owner: Ayine-nongre
- Created: 2023-06-23T21:45:07.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-22T10:02:47.000Z (over 2 years ago)
- Last Synced: 2025-01-14T07:14:05.212Z (over 1 year ago)
- Topics: blog-api, mysql, nodejs
- Language: JavaScript
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BLOG API
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.
## FEATURES IMPLEMENTED
✔️ 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
## TECHNOLOGIES USED
   
## GETTING STARTED
1. Clone the project
```
git clone https://github.com/Ayine-nongre/Blog-API.git
```
2. Change to project directory
```
cd Blog-API/
```
3. Set up enviroment variables in env file
```
DB_USER, DB_PASSWD, PRIVATEKEY
```
4. Install packages used in project
```
npm install
```
5. Start server
```
nodemon app.js
```
## DISCLAIMER
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 😄