Skip to content

A full-stack Bookstore web application built using the MERN stack (MongoDB, Express.js, React.js, Node.js). It allows users to manage a collection of books with complete CRUD functionality.

Notifications You must be signed in to change notification settings

MeetVora79/bookApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š MERN Bookstore App

A full-stack Bookstore application built using the MERN stack (MongoDB, Express.js, React.js, Node.js).
It provides users with a simple interface to manage a collection of books through full CRUD operations.


✨ Features

  • βœ… Add a new book with title, author, description, price, and year
  • πŸ“ƒ List all books in the database
  • πŸ” View details of a specific book by ID
  • ✏️ Update book information
  • ❌ Delete a book from the collection
  • 🌐 RESTful API integration
  • βš›οΈ Responsive frontend using React and Tailwind CSS

🧱 Tech Stack

Layer Technology
Frontend React.js, Tailwind CSS
Backend Node.js, Express.js
Database MongoDB (via Mongoose)
Tools Postman, MongoDB Compass

πŸ“‚ Project Structure

bookstore-app/ β”œβ”€β”€ backend/ β”‚ β”œβ”€β”€ models/ β”‚ β”œβ”€β”€ routes/ β”‚ β”œβ”€β”€ controllers/ β”‚ └── server.js β”œβ”€β”€ frontend/ β”‚ β”œβ”€β”€ src/ β”‚ β”‚ β”œβ”€β”€ components/ β”‚ β”‚ └── App.jsx └── README.md


πŸš€ Getting Started

1. Clone the repository

git clone https://github.com/your-username/mern-bookstore.git
cd mern-bookstore

### 2. Start the Backend
cd backend
npm install
npm start
Ensure MongoDB is running locally at: mongodb://localhost:27017/BookApp

### 3. Start the Frontend
cd ../frontend
npm install
npm start

## API Endpoints
| Method | Endpoint     | Description    |
| ------ | ------------ | -------------- |
| GET    | `/books`     | Get all books  |
| GET    | `/books/:id` | Get book by ID |
| POST   | `/books`     | Add a new book |
| PUT    | `/books/:id` | Update a book  |
| DELETE | `/books/:id` | Delete a book  |

About

A full-stack Bookstore web application built using the MERN stack (MongoDB, Express.js, React.js, Node.js). It allows users to manage a collection of books with complete CRUD functionality.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published