A fullโstack Bookstore application built using the MERN stack (MongoDB, Express, React, Node.js).
This project is a Bookstore application where users can browse, add, edit, and delete books. It features separate backend and frontend directories, showcasing how to structure and deploy a MERN stack app.
- Browse a list of books
- View details of each book
- Add a new book
- Edit existing book details
- Delete books
- User interface built using React
- RESTful API backend using Node.js + Express
- Data stored in MongoDB
| Layer | Technology |
|---|---|
| Database | MongoDB |
| Backend | Node.js, Express |
| Frontend | React |
| Styling | CSS / (optional) |
Before you begin, make sure you have:
- Node.js (v14+ recommended)
- npm or yarn
- MongoDB running locally or a MongoDB Atlas connection URL
- Clone the repo
git clone https://github.com/Divya2k5/BookstoreMERN.git cd BookstoreMERN - Setup Backend cd backend npm install
npm start
-
Setup Frontend cd ../frontend npm install npm start
-
Access the app Open your browser and navigate to: http://localhost:3000 (or relevant port)
๐ฎ Usage
Use the UI to browse available books.
Click โAdd Bookโ to create a new book entry.
Use โEditโ to update book details.
Use โDeleteโ to remove a book.
All actions are persisted in the MongoDB database via the backend API.
- BookstoreMERN/
- backend/
- models/
- routes/
- controllers/
- .env
- server.js
- frontend/
- src/
- public/
- package.json
- .gitignore
- backend/
๐ค Contributing
Contributions are welcome!
Fork the repository
Create a new branch (git checkout -b feature/YourFeature)
Commit your changes (git commit -m 'Add ...')
Push to the branch (git push origin feature/YourFeature)
Open a pull request and describe your changes
Please make sure your code adheres to existing style and includes relevant tests where applicable.
๐ License
This project is open source and available under the MIT License . Feel free to use, modify, and distribute.
Thank you for checking out BookstoreMERN! Happy coding ๐