This project is a full-stack web application for a bookstore, built with the MERN stack (MongoDB, Express.js, React, Node.js). It allows users to view a list of books, add new books, edit existing books, and delete books.
- List all books
- Add a new book
- Edit an existing book
- Delete a book
- Responsive web design
- MongoDB
- Express.js
- React
- Node.js
- Axios for API requests
- React Router for navigation
- Vite for front-end tooling
- notistack for Snackbar notifications
To get a local copy up and running follow these simple steps.
- npm
npm install npm@latest -g
- Clone the repo
git clone https://github.com/birdbirdmurmur/Bookstore-MERN.git
- Install NPM packages
npm install
- Create a
.env
file in the root directory and enter your environment variables:echo "MONGODB_URL=your_mongodb_url_here" > .env
For development, you can run the front-end and back-end servers separately for a better debugging experience.
- To start the front-end server, navigate to the frontend directory and run:
cd frontend npm run dev
- To start the back-end server, navigate to the backend directory and run:
cd backend npm run dev
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.