DanFalcon225 / MERN_stack_app

MERN stack app | Backend CRUD | Backend Router | CORS Policy | MongoDB operations | Frontend CRUD | Frontend Router

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Library - MERN stack app

The current project primarily focuses on showcasing the core functionality of the online library. It includes the following features:

  • Adding new books to the library database, including details such as title, author, and publication date.
  • Viewing existing books in the library database.
  • Editing book details, including title, author etc.
  • Removing books from the library database.

Backend CRUD | Backend Router | CORS Policy | MongoDB operations | Frontend CRUD | Frontend Router

Tech Stack

Client: React + Vite, TailwindCSS

Server: Node, Express, MongoDB + mongoose

Tools: Postman - for the backend testing

Deployment

To deploy this project need to follow below steps

  1. Create database instance in MongoDB

  2. A config.js file needs to be create in backend folder where corresponding local host port and link to database instance needs to be put.

export const PORT = 5555;
export const mongoDBURL = 
//your db url goes her//

Make sure that collection name is books-collection and localhost port 5555

  1. Please run following command in frontend and backend directory to install remaining dependencies:
npm i
  1. Run following command into the backend and frontend directories
npm run dev

About

MERN stack app | Backend CRUD | Backend Router | CORS Policy | MongoDB operations | Frontend CRUD | Frontend Router


Languages

Language:JavaScript 98.4%Language:HTML 1.4%Language:CSS 0.2%