As a maticulous vehicle owner, I like to keep a running log of all the services that my vehicle(s) go through. Prior to this, I was using a spreadsheet to keep track of all my services. I decided to build a small CRUD application and modernize the way I go about logging my vehicles maintenance records.
This application is built using Laravel 9 and Vue 3. I decided to use Laravel because I have used other PHP frameworks in the past with great success. I wanted to give Laravel a try as it seems to be widely used today, according to JetBrains and Kinsta.
- Clone this project locally.
- Run
cd {project_directory}
. - Install composer dependencies (note: must have Composer installed).
- Install NPM dependicies (note: must have npm installed).
- Run
cp .env.example .env
- Update DB connections as necessary.
- [Optional] Configure a mail server if you want full functionality of password reset features.
- Run
php artisan key:generate
- Run
php artisan migrate
- Run
php artisan serve
- Run
npm run dev
- Navigate to outputted URL (example: http://localhost:8000/)
- After stopping the project, all you will need to do to restart is run the following in Terminal:
$ cd {project_directory} $ php artisan serve $ npm run dev
- Create a new user using the "Register" link.
- Login as the user.
- Add a vehicle.
- See vehicle's service logs.
- Delete a vehicle - note: deleting a vehicle also deletes all of its associated service logs.
- Add a service log record.
- Update a service log item.
- Delete a service log item.