An open API service indexing awesome lists of open source software.

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)

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