Overview This is a bookstore web application built using the MERN stack (MongoDB, Express.js, React.js, Node.js). The application allows users to read book summaries, order books, view their cart, and see order details. The backend leverages MongoDB Atlas for database services, and APIs are tested using Postman.
Features User Registration and Login: Users can register and log in using their Gmail accounts and passwords. Book Summaries: Users can read summaries of books. Order Books: Users can add books to their cart and place orders. View Cart: Users can view the items in their cart along with prices. Order Details: Users can view the details of their orders, including price and shipping information.
Technology Stack Frontend: React.js, HTML, CSS, JavaScript Backend: Node.js, Express.js Database: MongoDB, MongoDB Atlas (cloud database) API Testing: Postman
Getting Started Ensure you have the following installed: Node.js npm (Node package manager) MongoDB account (for MongoDB Atlas)
Installation Clone the repository: git clone https://github.com/Vipin-05/bookstore.git Navigate to the project directory:
cd bookstore Install dependencies for the backend:
cd backend npm install Install dependencies for the frontend:
cd frontend npm install Running the Application Start the backend server:
cd backend npm start Start the frontend development server:
cd frontend npm start
Access the application: Open your browser and navigate to http://localhost:4173.
Usage Register/Login: Use your Gmail account to register and log in. Browse Books: Read summaries and find books you’re interested in. Add to Cart: Add books to your cart and review them before placing an order. Place Order: Complete your purchase and view order details.
API Documentation The API endpoints are documented and can be tested using Postman. Import the provided Postman collection (if available) to get started with API testing.
Contributing Contributions are welcome! Please follow these steps to contribute: Fork the repository. Create your feature branch (git checkout -b feature/your-feature). Commit your changes (git commit -m 'Add some feature'). Push to the branch (git push origin feature/your-feature). Open a pull request.
Acknowledgements Special thanks to all contributors and the open-source community.
Contact For any inquiries, please contact [vrchaudhari07@gmail.com , utkarshgupta0509@gmail.com].