https://github.com/mostafaibrahim24/blog-rest-api
A simple REST API (blog)
https://github.com/mostafaibrahim24/blog-rest-api
blog-api expressjs jwt-authentication mongodb mongoose nodejs practice rest-api
Last synced: 2 months ago
JSON representation
A simple REST API (blog)
- Host: GitHub
- URL: https://github.com/mostafaibrahim24/blog-rest-api
- Owner: mostafaibrahim24
- Created: 2021-09-29T11:07:29.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-01T13:02:27.000Z (over 4 years ago)
- Last Synced: 2025-07-27T10:36:36.366Z (11 months ago)
- Topics: blog-api, expressjs, jwt-authentication, mongodb, mongoose, nodejs, practice, rest-api
- Language: JavaScript
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blog REST API Practice
This is a simple blog api developed using Node.js,Express and MongoDB.

## Features:
User:
- [x] User Signup
- [x] User Signin
- [x] User Authentication using jsonwebtokens ("/user" mounted)
- [x] Read User Profile by id
- [x] Update User Account
- [x] Delete User Account
---
Blog:
- [x] User needs to be authenticated to access any of ("/blog" mounted)
- [x] Create a new Blog Post
- [x] Read all Blog Posts created + Pagination + Sorted by recently posted
- [x] Read a specific Blog Post by id
- [x] Update a Blog Post
- [x] Delete a Blog Post
---
- [x] Link the authenticated User with the blogs he created ( referenced using their ObjectId in the User document in an array )
- [x] Link the blog with creator of it ( referenced using the user's ObjectId )
## To be done:
- Refactor it and make more layers
- Better Error Handling
- Add new features:
1- Sorting features 2- Comment on a Blog