MyCarango is a Node.js application for managing and tracking the maintenance history of vehicles. This application allows users to add vehicles and log maintenance activities, providing a historical record of all maintenance performed on each vehicle.
The entire app was built on TDD, Clean Arch and Solid principles
- Add new vehicles to the system.
- Log maintenance activities for each vehicle.
- Retrieve and display the maintenance history of each vehicle.
- Node.js (>= 20.x)
-
Clone the repository:
git clone https://github.com/vitorconti/myCarango.git cd my-carango
-
Install the dependencies:
npm install
To build the project, run the following command:
npm run build
This command will:
- Clean the
dist
directory. - Compile the TypeScript files.
- Copy the
./src/infra/db/sqlite/myCarango-database.db
file to thedist/src
directory.
To start the CLI server:
npm run start:cli
To add a vehicle, run the CLI server and follow the prompt to enter the vehicle's name, brand, and year:
npm run start:cli
To run the application in development mode with auto-reloading:
npm run dev
To run all tests:
npm test:ci
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.