Skip to content

Nodejs Blog manager API server built using express, mongoose and JSON Web Token For session Handling

Notifications You must be signed in to change notification settings

purpledmango/PatchedWeb-Nodejs-Blog-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NODEJS BLOG MANAGER API

This software was built using Express (with Node.js) and Mongoose as the MongoDB driver. The API allows you to perform CRUD operations on Authors, Articles, and Tags. It also allows you to manage users based on their roles and add thumbnails to articles.

HOW TO RUN

  1. Navigate to the project directory:
cd PatchedWeb-Nodejs-Blog-api/
  1. Create a new .env file:
touch .env
  1. Open the .env file and add the following environment variables:
DB_URI= //ADD YOUR MONGODB DB URI HERE //
PORT= /// YOUR PORT NO //
JWT_SECRET= //your_secret_key //
DEV_ORIGIN_HOST=http://localhost:9000
ADMIN_CLIENT_HOST=//domain name //
APP_CLIENT_HOST= // domain name //  

  1. Install dependencies:
npm install

5.Run the server:

npm run dev

About

Nodejs Blog manager API server built using express, mongoose and JSON Web Token For session Handling

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published