mostafaibrahim24 / blog-rest-api

A simple REST API (blog)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blog REST API Practice

This is a simple blog api developed using Node.js,Express and MongoDB.

Features:

User:

  • User Signup
  • User Signin
  • User Authentication using jsonwebtokens ("/user" mounted)
  • Read User Profile by id
  • Update User Account
  • Delete User Account

Blog:

  • User needs to be authenticated to access any of ("/blog" mounted)
  • Create a new Blog Post
  • Read all Blog Posts created + Pagination + Sorted by recently posted
  • Read a specific Blog Post by id
  • Update a Blog Post
  • Delete a Blog Post

  • Link the authenticated User with the blogs he created ( referenced using their ObjectId in the User document in an array )
  • 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

About

A simple REST API (blog)


Languages

Language:JavaScript 100.0%