Auto-Flow is a fleet management system built with NestJS and SQLite. It handles the management of cars, drivers, and their history through well-structured domain layers.
- Node.js 20.x
- No additional configuration is needed for SQLite.
The project is organized into different domains, each responsible for a specific entity within the fleet management system. The domains are:
- Car
- Driver
- History
Each domain contains the following directories:
- dto - Data Transfer Objects for structuring input and output data.
- repository - Manages database interactions.
- controller - Handles incoming HTTP requests and sends responses.
- module - The module file that integrates services and controllers.
- service - Contains business logic for the respective domain.
In addition to the domains, there is a shared directory that contains:
- dto - Common data structures shared between domains.
- exception - Shared exceptions that can be used across different modules.
- Clone the repository:
git clone https://github.com/yourusername/auto-flow.git
- Navigate to the project directory:
cd auto-flow - Install dependencies:
npm install
- Run the application in development mode:
npm run start:dev
The application will automatically use SQLite, and no additional configuration is required.
This project uses Swagger for API documentation. Once the application is running, you can access the Swagger UI at the following route:
http://localhost:3000/api
auto-flow/
│
├── car/
│ ├── dto/
│ ├── repository/
│ ├── controller/
│ ├── module/
│ └── service/
│
├── driver/
│ ├── dto/
│ ├── repository/
│ ├── controller/
│ ├── module/
│ └── service/
│
├── history/
│ ├── dto/
│ ├── repository/
│ ├── controller/
│ ├── module/
│ └── service/
│
└── shared/
├── dto/
└── exception/
This project is licensed under the MIT License.