It's need to install in your computer:
Docker: 20+
Execute this commands to start the application:
// Create the .env file
cp .env.example .env
// Start all containers docker
make up
// Enter in container
make bash
// Generate the key (inside the container)
php artisan key:generate
// Run the migrations (inside the container)
php artisan migrate
// It's everything!
// You can access the api in: http://localhost:8840/
// Create migrations (First time)
php artisan migrate --seed
// Drop/Create migrations with seeds
php artisan migrate:fresh --seed
// Install database without datas
php artisan migrate:fresh
// Run the tests (inside the container), you can use the make bash command to enter in the container
composer run test
// Run the tests with coverage
composer run test:cov
Import the file docs/TurnoBank.postman_collection.json
in your Postman.
The collection have two basic variables:
BASE_URL
: The base url of the API, default ishttp://localhost:8840/
JWT_TOKEN
: The token to access the API, you can get it in the login endpoint. This token is automatically set in theAuthorization
header when you login in the API.
- Endpoint UI: https://turno.brunoferreiras.dev/login
- Endpoint API: https://turno-api.brunoferreiras.dev/api
Username: admin
Password: password
- ./docs/turnobank-demo.mp4 => Video of the application running