Skip to content

A web-based bookstore application that allows users to browse, search, and purchase books online, featuring user authentication, secure checkout, and admin management for inventory and orders.

Notifications You must be signed in to change notification settings

Harsh1428rao/BookStore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

51 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š Online Bookstore Web Application

Welcome to the Online Bookstore Web Application! This project is a web-based platform where users can browse, search, and purchase books online, offering a seamless and user-friendly experience for book lovers.

πŸ› οΈ Tech Stack

  • Frontend: React.js, Tailwind CSS
  • Backend: Node.js, Express.js
  • Database: MongoDB
  • State Management: Redux (Optional based on the project setup)
  • Authentication: JSON Web Tokens (JWT)
  • API Requests: Axios
  • Deployment: (Mention if deployed, e.g., Heroku, Vercel)

✨ Features

  1. User Authentication:

    • Sign up, login, and logout functionalities using JWT.
    • Password hashing with bcrypt for secure user authentication.
  2. Book Browsing and Searching:

    • Users can view books from various categories.
    • Search functionality to find books by title, author, or genre.
  3. Book Details:

    • Detailed view of each book, including the book’s title, author, price, and description.
    • Add to cart option for easy purchasing.
  4. Shopping Cart:

    • Users can add books to the shopping cart and update or remove them before checkout.
  5. Checkout Process:

    • Secure checkout process with order summary and payment gateway integration (Stripe/PayPal).
  6. Admin Dashboard:

    • Admins can manage the inventory by adding, updating, or deleting books.
    • Track user orders and monitor sales data.
  7. User Reviews and Ratings:

    • Users can leave reviews and rate books they have purchased.
  8. FAQ Section:

    • Includes common questions and answers to help users navigate the platform.

πŸš€ Getting Started

Prerequisites

Make sure you have the following installed:

  • Node.js (version X.X.X)
  • MongoDB (local instance or MongoDB Atlas)

Installation

  1. Clone the repository:

    git clone https://github.com/Harsh1428rao/bookstore-app.git
  2. Navigate to the project directory:

    cd bookstore-app
  3. Install dependencies for both the client and server:

    # For the backend
    cd backend
    npm install
    
    # For the frontend
    cd ../frontend
    npm install

Configuration

  1. Backend Configuration:
    In the backend folder, create a .env file and add the following:

    MONGO_URI=<your-mongodb-connection-string>
    JWT_SECRET=<your-secret-key>
  2. Frontend Configuration:
    In the frontend folder, create a .env file for environment-specific variables (like API URL if needed).

Running the Application

  1. Start the backend server:

    cd backend
    npm start
  2. Start the frontend client:

    cd frontend
    npm run dev

Open your browser and go to http://localhost:3000 to see the application in action.

πŸ“¦ Project Structure

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

🀝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page or make a pull request.

  1. Fork the project.
  2. Create your feature branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

About

A web-based bookstore application that allows users to browse, search, and purchase books online, featuring user authentication, secure checkout, and admin management for inventory and orders.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors