https://docs.google.com/document/d/1yHU9K4LfDcPN-GfYdeuYOiC0UxtRbB_Nj04wZVxDShk/edit?usp=sharing
Welcome to the Fleet Manager Backend! This Node.js application serves as the backend for the Fleet Manager system, providing API endpoints for managing and monitoring vehicle fleets.
Follow these instructions to set up and run the backend on your local machine.
- Node.js: Make sure you have Node.js version 18 installed. You can download it here.
- MongoDB: The backend uses MongoDB as its database. Make sure you have it installed and running. You can download it here.
-
Clone the repository to your local machine:
git clone https://github.com/lcsvcn/fleet-manager-backend.git
-
Navigate to the project directory:
cd fleet-manager-backend
-
Install dependencies:
npm install
-
Start the server:
npm start
-
The server will run on http://localhost:3100 by default.
- GET /api/v1/fleets: Get a list of all fleets.
- POST /api/v1/fleet: Add a new fleet.
- GET /api/v1/fleets/[id]: Get details of a specific fleet.
- GET /api/v1/fleet/[id]/drones: Get details of a specific drone in a specific fleet.
- POST /api/v1/fleet/[id]/drones: Update details of a specific drone in a specific fleet.
- GET /api/v1/clients: Get a list of all clientes.
- POST /api/v1/clients: Add a new clients.
- POST /api/v1/#: Check if client exists
Feel free to expand and customize the API endpoints based on your application's requirements.
The backend uses MongoDB as its database. Make sure to have MongoDB installed and running. You can configure the database connection in the .env
file.
We welcome contributions! If you find a bug or have a feature request, please open an issue or submit a pull request.
This project is licensed under the MIT License.