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
Client: React + Vite, TailwindCSS
Server: Node, Express, MongoDB + mongoose
Tools: Postman - for the backend testing
To deploy this project need to follow below steps
-
Create database instance in MongoDB
-
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
- Please run following command in frontend and backend directory to install remaining dependencies:
npm i
- Run following command into the backend and frontend directories
npm run dev