Skip to content

luckymughall/MERN-BookStore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

📚 MERN BookStore

Welcome to the MERN BookStore! This project is a full-stack bookstore application developed using the MERN stack (MongoDB, Express, React, Node.js).

BookStore

🚀 Features

  • 🔒 User Authentication: Sign up, log in, and log out functionality.
  • 📚 Book Management: Add, edit, delete, and view books.
  • 🛒 Shopping Cart: Add books to the cart and proceed to checkout.
  • 📦 Order Management: View order history and order details.

📁 Project Structure

Backend

The backend of the project is built with Node.js, Express, and MongoDB.

Files and Directories

  • server.js: The main entry point for the backend application.
  • config/: Contains configuration files for connecting to the database and other settings.
  • controllers/: Contains the logic for handling requests and responses.
  • models/: Defines the data models used by the application.
  • routes/: Defines the API endpoints and routes.
  • middleware/: Contains middleware functions for request processing and authentication.
  • utils/: Utility functions and helpers.

Frontend

The frontend of the project is built with React.

Files and Directories

  • src/: Contains the source code for the React application.
    • components/: Reusable UI components.
    • pages/: Page components corresponding to different routes.
    • services/: Functions for making API calls.
    • App.js: The main app component.
    • index.js: The entry point for the React application.
    • App.css: The main stylesheet.

🛠️ Getting Started

Backend Setup

  1. Install Dependencies

    npm install
  2. Environment Variables

    Create a .env file in the backend directory and add the following:

    MONGO_URI=your_mongo_connection_string
    JWT_SECRET=your_jwt_secret
    
  3. Run the Server

    npm start

Frontend Setup

  1. Install Dependencies

    npm install
  2. Run the Application

    npm start

🤝 Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Commit your changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Create a pull request.

📜 License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages