Skip to content

This project named Online Book Sales - Backend deals with developing an e-commerce website for Online Book Sale. It provides the user with a catalog of different books available for purchase in the store. In order to facilitate online purchase, a shopping cart is provided to the user.

License

Notifications You must be signed in to change notification settings

Aryan-01-star/OnlineBookSales

Β 
Β 

Repository files navigation

πŸ“š Online Book Sales πŸ“šπŸ–ŒοΈ


🌟 Stars 🍴 Forks πŸ› Issues πŸ”” Open PRs πŸ”• Close PRs πŸ› οΈ Languages πŸ‘₯ Contributors
Stars Forks Issues Open Pull Requests Close Pull Requests GitHub language count GitHub Contributors count

Welcome to Online Book Sales, an e-commerce platform where you can browse, purchase, and enjoy a wide range of books from our extensive catalog! Our system is built with a 3-tier architecture, featuring a MongoDB database backend, Node.js & Express.js middleware, and a sleek React frontend.

CoverPage

πŸ“‘ Table of Contents


Features

  • User Registration & Login: Secure account creation with user authentication.
  • Browse Books: Explore our rich catalog with detailed book info.
  • Shopping Cart: Easily add, update, or remove items.
  • Order History: View your past purchases at any time.

Live Project Links

This project is now OFFICIALLY accepted for

GSSoC 2024 Extd
Hacktober fest 2024

Tech Stack

Frontend Backend Database
HTML5 Node.js MongoDB
CSS3 Express.js
JavaScript React

Code of Conduct

We encourage everyone to be respectful and inclusive. Please take a moment to review our Code of Conduct to help foster a positive environment. πŸ’¬


How to Contribute

We welcome all contributions! πŸŽ‰ If you'd like to add new features or fix bugs, check out the Contributing Guidelines to get started. Fork the repo, clone it, make your changes, and submit a pull request.

Here’s how to fork the project:

  1. Navigate to the Repository:

    • Head to the Online Book Sales repository.
  2. Click the Fork Button:

    • Click on the β€œFork” button in the upper-right corner.
  3. Create Your Copy:

    • Select your GitHub account to fork the repository.

How to Run the Webpage on Your Local System

Follow these steps to run the project on your local machine:

  1. Clone the repository:

    git clone https://github.com/Trisha-tech/OnlineBookSales.git
    cd OnlineBookSales
  2. Write the command.

    npm install
    
  3. For Frontend Go to 'client' directory write command

    npm install
    
  4. Write the command.

    yarn start / npm start
    

That's it! You’re ready to explore the application locally. πŸš€


Troubleshooting

Common Installation Issues

  • Error: npm install fails:
    • Ensure that Node.js and npm are correctly installed on your machine. You can check this by running node -v and npm -v in your terminal.
    • If you encounter permission issues, try using sudo npm install (for macOS/Linux) or running the command prompt as an administrator (for Windows).

Problems with Starting the Server

  • Error: Cannot find module 'express':
    • This error usually indicates that the required packages haven't been installed. Make sure to run npm install in both the root and client directories.
  • Server crashes on startup:
    • Check the console logs for any errors that may provide hints about what went wrong. Common issues could be related to incorrect environment variables or database connection strings.

Issues Related to Dependencies

  • Version conflicts:
    • Ensure that all dependencies in your package.json are compatible. If you see warnings or errors during installation, consider using npm audit fix to resolve vulnerabilities.

FAQs

  • Q: How do I reset my local database?

    • A: You can drop the existing database and run your migrations or seed scripts again. Make sure to back up any important data before doing this.
  • Q: How can I contact support?

    • A: If you have further issues or questions, please open an issue in this repository, and we'll be happy to help!

Additional Suggestions

  • Clarity: Make sure the instructions are as clear as possible. For example, specify where to run commands (in which directory).
  • Links: If you refer to any external resources (like Node.js downloads), adding hyperlinks could be beneficial.

Using GitHub Desktop

Alternatively, you can use GitHub Desktop to manage the repository:

  1. Download GitHub Desktop from here.
  2. Clone the Repository by signing in to your GitHub account, selecting the repository, and clicking "Clone".
  3. Make Changes: Edit code locally using your favorite editor.
  4. Commit & Push: Commit your changes and push them to GitHub via the GitHub Desktop interface.

In-Depth Project Analysis

For a detailed overview of how the project works, please read the Project Details documentation. This will give you a deep dive into the architecture and design decisions. 🧠


Our Contributors

A big THANK YOU to all our contributors! πŸ™Œ

Contributors

Contact Information

If you have any questions or feedback, feel free to reach out via GitHub. You can also join our discussion forum.

We look forward to hearing from you! ✨

πŸ’™ Thank You !!! πŸ’™

About

This project named Online Book Sales - Backend deals with developing an e-commerce website for Online Book Sale. It provides the user with a catalog of different books available for purchase in the store. In order to facilitate online purchase, a shopping cart is provided to the user.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 82.5%
  • HTML 10.2%
  • CSS 5.5%
  • Python 1.7%
  • Dockerfile 0.1%