It's need to install in your computer:
Docker: 18.06.0+
Docker-compose: 1.27.0+
Execute this commands to start the application:
// Create the .env file
cp .env.example .env
// Start all containers docker
docker-compose up -d // or make up
// Enter in container
make bash
// Generate the key
php artisan key:generate
// Build front
npm install && npm run prod
// It's everything!
// You can access the api in: http://localhost:8040/
## Tools
- [Laravel 8](https://laravel.com/)
- [MySQL 8.0](https://www.mysql.com/)
- [Redis 5.0](https://redis.io/)
### Migrations
```bash
php artisan migrate:fresh // Drop all data and recreate all tables
You can create a user in: http://localhost:8040/register
You can log in with a user in: http://localhost:8040/login
You can see all customers: http://localhost:8040/customers
You can see all products: http://localhost:8040/products
You can hydrate the database with this command:
// Enter in container
make bash
// Execute the command
php artisan dispatch:hydrate-database 5000 // The param is a quantity to insert data