- Add more love on the UI/UX
- Switch frontend for anything else (Vuejs, React, etc.)
- More unit tests (Enums, controller, End2End)
- Create specific Request object
- Use backend proxy action to call the calculator and secure the API KEY token
- Use method options() of enums to pupulate the select in the form
- Break frontend and backend apps apart completely since they are in the same apps in this MVP.
Ensure you have the following installed on your system:
- PHP 8.4.x (Download)
- Composer 2.8.x (Installation Guide)
- Node.js 10.9.x & npm (Download)
- Database: use SQLite database
- Composer dependencies
- PHP_CodeSniffer 3.11.x
- PHPUnit 11.5.x
The project is built using the following technologies:
- Laravel 12.x
- Laravel Sanctum 4.x
- SQLite
- Vanilla Javascript
Follow these steps to set up the project from scratch:
git clone https://github.com/slevesque/bid-calculator.git
cd bid-calculatorcp .env.example .envcomposer install
npm installphp artisan key:generate
Run migrations and seed the database:
php artisan migrate --seedNote: During seeding, an API key will be generated. Copy the key and update your .env file:
BID_CALCULATOR_API_KEY=your-generated-api-keyThis key is required to interact with the bid calculator backend.
Open two terminal sessions:
- Start Laravel's built-in server:
php artisan serve- Run Vite for frontend assets:
npm run devOpen your browser and go to:
Enjoy the bid calculation tools! 🚀
To run automated tests, use:
php artisan testTo check for coding standard violations with the phpcs.xml rule file, run:
vendor/bin/phpcs