This project is a simple web application to manage a book store. It is a full stack project using the MERN stack (MongoDB, Express, React, Node.js).
The functionalities developed are:
- List all books
- Add a new book
- Edit a book
- Delete a book
Future Improvements
- Search book by title
- Login and authentication
- Authorization
- Pagination
- REST API
Install the required packages in the backend folder.
$ cd backend$ npm installInstall the required packages in the frontend folder.
$ cd frontend$ npm installIn the backend folder, there is a sampleConfig.js file. Create a new file named config.js and copy the content of sampleConfig.js to config.js. Replace the MongoDB connection string with your own connection string.
export const mongoDBURL =
"mongodb+srv://<user_name>:<password>@book-store-db.chncoxg.mongodb.net/books-collection?retryWrites=true&w=majority";To run the app, run the following command in the backend folder.
$ npm run devTo run the app, run the following command in the frontend folder.
$ npm run dev