Skip to content

Darkrider0007/mess_manager_backend

Repository files navigation

Mess-Manager Backend

What is Mess-Manager Backend?

Mess-Manager Backend is the backend component of the Mess-Manager application. It contains the logic, functions, routes, and endpoints necessary for managing mess-related operations.

How to Install

  1. Clone the repository
  2. Install dependencies: npm install
  3. Create a .env file in the root directory and add the following environment variables:
PORT=8000
CORS_ORIGIN=*
MONGO_URI=
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=


ACCESS_TOKEN_SECRET=
ACCESS_TOKEN_LIFE=
REFRESH_TOKEN_SECRET=
REFRESH_TOKEN_LIFE=

  1. Start the server: npm start
  2. The API will be accessible at https://localhost:8000/api/v1

Routes

  1. User Route: /api/v1/users
  2. Mess Route: /api/v1/mess
  3. Incoming Amount Route: /api/v1/incomingAmount
  4. Expense Route: /api/v1/expenses
  5. Health Route: /api/v1/health

Postman Collection

For detailed information on how to use the API and interact with the routes, please refer to the Postman collection here.

Credits

Mess-Manager Frontend

Work on the frontend component of the Mess-Manager application is currently in progress.You can find the repository here