Skip to content

This repository contains a simple Node.js blog API developed for educational purposes, particularly for teaching on Udemy. It provides a basic foundation for understanding how to create RESTful APIs using Node.js, Express.js, and MongoDB.

Notifications You must be signed in to change notification settings

jahidhiron/node-blog-api

Repository files navigation

Nodejs Blog REST API

License: MIT

Description

This repository contains a simple Node.js blog API developed for educational purposes, particularly for teaching on Udemy. It provides a basic foundation for understanding how to create RESTful APIs using Node.js, Express.js, and MongoDB.

Table of Contents

Installation

Install MongoDb Database

git clone [email protected]:jahidhiron/node-blog-api.git
cd node-blog-api
npm install

Usage

npm start

Features

  • Authentication and Authorization
  • Add, Update, Delete blog posts
  • Search and filter blogs with pagination
  • Sending email
  • Flexible and easy-to-use API endpoints
  • Scalable and well-documented codebase

API Endpoints

Look at 'api-collection/api-collection.json' file for API end point

Technology

  1. Used node.js runtime environment for server side
  2. Express.js web framework
  3. To validate request, I have used express-validator
  4. SendGrid is used to send email

Decision

  1. Why nodejs/Express?: Node. js uses non-blocking, event-driven I/O to remain lightweight and efficient in the face of data-intensive real-time applications that run across distributed devices.
  2. I have used pagination instead of loading all data at a time. Initially, it loads 10 items
  3. Authentication, authorization, user verify, recover password are added to this app

License

This project is licensed under the MIT License.

About

This repository contains a simple Node.js blog API developed for educational purposes, particularly for teaching on Udemy. It provides a basic foundation for understanding how to create RESTful APIs using Node.js, Express.js, and MongoDB.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published