Skip to content

Latest commit

 

History

History
74 lines (52 loc) · 1.93 KB

test.md

File metadata and controls

74 lines (52 loc) · 1.93 KB

Table of Contents

This project is a MERN stack application, utilizing MongoDB, Express.js, React, and Node.js. The project is structured with a backend and client directory, each containing their respective components and functionalities.

Backend

The backend is located in the backend directory. It is responsible for:

  • API endpoints: Defining the API routes and handling requests.
  • Database interactions: Connecting to the MongoDB database and performing CRUD operations.
  • Authentication: Handling user login and registration.
  • Data validation: Ensuring that data is valid before it is stored in the database.

Frontend

The frontend is located in the client directory. It is responsible for:

  • User interface: Building the user interface using React components.
  • Data fetching: Making API requests to the backend to retrieve data.
  • State management: Managing the application state using React hooks.
  • Routing: Handling navigation between different pages.

Running the Project

To run the project, follow these steps:

  1. Install dependencies:

    cd backend
    npm install
    cd ../client
    npm install
  2. Set up environment variables:

    cd backend
    cp .env.example .env
    cd ../client
    cp .env.example .env
  3. Start the backend server:

    cd backend
    npm start
  4. Start the frontend development server:

    cd client
    npm run dev

The frontend will be accessible at http://localhost:3000. The backend will be accessible at http://localhost:8000.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.