Skip to content

HindzStark/Bookstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š MERN Stack Bookstore

This repository contains a full-stack Bookstore application built with the MERN stack (MongoDB, Express.js, React, Node.js). It features a RESTful API for managing book and user data, a responsive React frontend for browsing and purchasing, and MongoDB for storage. Ideal for learning full-stack development with MERN.

🌟 Features

  • πŸ›’ Browse Books: Explore a wide variety of books available in the store.
  • πŸ“– Book Details: View detailed information about each book, including price and description.
  • πŸ’Ό User Management: Create and manage user accounts (signup/login).
  • πŸ›οΈ Add to Cart: Add your favorite books to the shopping cart.
  • οΏ½ Multiple Payment Options: (UI only)
  • πŸ‘€ Admin Panel: (UI only)
  • οΏ½πŸš€ Fast and Responsive: Enjoy a smooth and responsive user interface.

🌐 Live Demo

Bookstore Live Frontend


πŸš€ Getting Started (Local Development)

Follow these steps to run the project locally:

1. Clone the repository

git clone https://github.com/dhruvjain-github/Bookstore.git
cd Bookstore

2. Setup the Backend

cd Backend
npm install

Create a .env file in the Backend directory with the following content:

PORT=4000
MONGODBURI=your_mongodb_connection_string

Start the backend server:

npm start

3. Setup the Frontend

In a new terminal:

cd ../Frontend
npm install
npm run dev

The frontend will run on http://localhost:5173 by default.


πŸ“ Project Structure

Bookstore/
β”œβ”€β”€ Backend/
β”‚   β”œβ”€β”€ app.js
β”‚   β”œβ”€β”€ controllers/
β”‚   β”œβ”€β”€ model/
β”‚   β”œβ”€β”€ routes/
β”‚   └── package.json
β”œβ”€β”€ Frontend/
β”‚   β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ package.json
β”‚   └── ...
└── README.md

πŸ› οΈ Tech Stack

  • Frontend: React, Vite, Tailwind CSS
  • Backend: Node.js, Express.js, MongoDB, Mongoose

🀝 Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.


πŸ“„ License

This project is licensed under the ISC License.

About

Basic MERN Bookstore: This repository contains a simple bookstore application built with the MERN stack (MongoDB, Express.js, React, Node.js). It features a RESTful API for managing book data, a responsive React frontend for browsing and purchasing, and MongoDB for storage. Ideal for learning full-stack development with MERN.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages