This project is the server-side implementation for IMMO Inc.'s admin dashboard. It provides the API endpoints for the dashboard to interact with the database.
- NodeJs
- ExpressJs
- MongoDB
- JWT
- All dependencies can be found in the package.json file.
- Make sure you have Node.js installed on your machine before running the project
- The client side of this project is available in a separate repository, please refer to the following link to get the client implementation: https://github.com/Julesdj/immo-admin.git
- Clone the repository:
https://github.com/Julesdj/immo-server.git
- Install the dependencies:
npm install
- Create a file named
.env
and copy-paste the.env.example
file - Start the server:
npm run dev
POST /api/auth
- Authenticate the userGET /api/products
- Retrieve a list of all productsGET /api/products/stats
- Retrieve a list of all products with statsGET /api/sales
- Retrieve a list of all salesGET /api/management/admins
- Retrieve a list of all administratorsGET /api/management/performances/:id
- Retrieve a user's performances over timeGET /api/client/geography
- Retrieve users by locationGET /api/client/transactions
- Retrieve a user's transactions over time
If you would like to contribute to this project, please fork the repository and make a pull request. We welcome any contributions to improve the functionality of the server.