Vehicle Allocation (Vallocation)
A fast and efficient Vehicle Allocation System built using FastAPI and MongoDB, designed to allow employees to allocate vehicles for specific dates, manage allocation statuses, and handle driver assignments. The system ensures that a vehicle is not double-booked and enforces date restrictions to prevent allocation modifications after the allocation date.
+Table of Contents
- Overview @@ -77,7 +78,7 @@
- Fahim - Developer, Architect -
- Contributors +
- Contributors
5. Run
fastapi dev main.py
fastapi dev main.py
The API will now be available at http://127.0.0.1:8000
.
Project Structure
-vallocation/
│
├── config/
│ └── database.py # Database configuration for MongoDB
│
├── docs/ # Documentation (Docusaurus)
│
├── models/
│ └── vallocation_model.py # Pydantic model for vehicle allocations
│
├── routers/
│ └── route.py # FastAPI routes for vehicle allocation
│
├── schemas/
│ └── schemas.py # Pydantic schemas for request/response models
│
├── .env.example # Example environment variables file
├── .gitignore # Git ignore rules
├── LICENSE # License file for the project
├── main.py # Entry point of the FastAPI application
├── requirements.txt # Python dependencies for the project
vallocation/
│
├── .github/ # Action Workflows
├── config/
│ └── database.py # Database configuration for MongoDB
│
├── docs/ # Documentation (Static Site - Generated by Docusaurus)
│
├── docs-docusaurus/ # Documentation (Docusaurus)
│
├── models/
│ └── vallocation_model.py # Pydantic model for vehicle allocations
│
├── routers/
│ └── route.py # FastAPI routes for vehicle allocation
│
├── schemas/
│ └── schemas.py # Pydantic schemas for request/response models
│
├── .env.example # Example environment variables file
├── .gitignore # Git ignore rules
├── LICENSE # License file for the project
├── main.py # Entry point of the FastAPI application
├── README.md # Repository README
├── requirements.txt # Python dependencies for the project
API Endpoints
Create an Allocation
-
@@ -145,8 +146,8 @@
Database Sch
Contributors
-
Feel free to open issues or submit pull requests to help improve this project!