This project is a full-stack book store application built using the MERN (MongoDB, Express.js, React.js, Node.js) stack.
- User authentication: Users can sign up, log in, and log out.
- Browse books: Users can view a list of available books with details such as title, author, and price.
- Search functionality: Users can search for books by title or author.
- Add to cart: Users can add books to their shopping cart and proceed to checkout.
- Checkout: Users can review their cart items and complete the purchase.
- Frontend: React.js, Axios, Notistack
- Backend: Node.js, Express.js, MongoDB
- Authentication: JSON Web Tokens (JWT) (Will be use)
- Styling: Tailwind CSS
- Node.js installed on your machine
- MongoDB Atlas account (for cloud database)
- Stripe account (for payment processing)
- Clone the repository:
git clone https://github.com/razerbotog/mern-book-store.git
- Install dependencies:
cd mern-book-store
npm install
- Set up environment variables:
Create a .env
file in the root directory and add the following variables:
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret_key
STRIPE_SECRET_KEY=your_stripe_secret_key
- Start the backend server:
npm start
- Start the frontend development server:
cd client
npm start
- Open your browser and navigate to
http://localhost:3000
to view the application.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License - see the LICENSE file for details.