This is a Book Management System built with React for the frontend and Express with MongoDB for the backend. It allows users to view, add, edit, and delete books in the system.
- View a list of books
- Add a new book
- Edit an existing book
- Delete a book
- View detailed information about a book
- Node.js
- npm
- MongoDB
-
Clone the repository:
git clone https://github.com/pramodyasahan/book-store-MERN.git cd book-management-system
-
Install backend dependencies:
cd backend npm install
-
Create a
.env
file in thebackend
directory and add your MongoDB connection string:DATABASE_URL=mongodb://localhost:27017/bookdb PORT=3000
-
Start the backend server:
npm start
-
Navigate to the
frontend
directory:cd ../frontend
-
Install frontend dependencies:
npm install
-
Start the frontend development server:
npm start
The frontend will be served at http://localhost:5173
and the backend at http://localhost:3000
.
- Open your browser and navigate to
http://localhost:5173
. - You will see the list of books.
- Use the buttons to add, edit, delete, or view details of a book.
- express
- mongoose
- cors
- dotenv
- react
- react-dom
- react-router-dom
- axios
- react-icons
Contributions are welcome! Please open an issue or submit a pull request for any changes.
This project is licensed under the MIT License.