A simple and clean Full Stack MERN project that allows users to add, view, update, and delete books. The project includes a responsive frontend built with React + Vite and a backend built with Node.js, Express, and MongoDB.
- Add new books with:
- Book Name
- Book Title
- Author
- Selling Price
- Publish Date
- Clean and responsive UI
- Table view for all added books
- Edit & delete actions with icons
- Axios used for API communication
- Deployed using Render
- REST API built using Node.js + Express
- MongoDB Database for storing books
- CRUD operations:
- Create book
- Get all books
- Update book
- Delete book
- Secure CORS configuration
- Fully deployed on Render
- React.js (Vite)
- Axios
- CSS
- React Icons
- Node.js
- Express.js
- MongoDB (Mongoose)
Book_Store/
├── frontend/
│ ├── src/
│ │ ├── components/
│ │ │ ├── Home.jsx
│ │ │ ├── Navbar.jsx
│ │ ├── App.jsx
│ │ ├── main.jsx
│ │ └── index.css
│ ├── package.json
│ └── vite.config.js
│
├── backend/
│ ├── controller/
│ │ └── book.controller.js
│ ├── model/
│ │ └── book.model.js
│ ├── routes/
│ │ └── book.routes.js
│ ├── database.js
│ ├── server.js
│ ├── package.json
│ └── package-lock.json
│
└── README.md
git clone https://github.com/abhishek-odiya/Book_Store.git
cd Book_StoreInstall backend dependencies
cd backend
npm installAdd environment variables (.env)
MONGO_URL=your_mongodb_connection_string
PORT=8000Run backend
npm startBackend will run on:
http://localhost:8000
Install frontend dependencies
cd frontend
npm installRun frontend
npm run devFrontend will run on:
http://localhost:5173
Render
Publish Directory:
frontend/dist
Build Command:
cd frontend && npm install && npm run buildRender
Base URL example:
https://book-store-2kj6.onrender.com/book
Abhishek Odiya
- GitHub: @abhishek-odiya
⭐ Don't forget to star this repo if you found it helpful!