Docker
19.03.5+Docker Compose
1.23.1+
Port 8000
For Backend APIPort 3306
For database
Clone this repository
https://github.com/michelpl/stock-api.git
Enter in repository folder
cd hiring-challenge
Run de follwing command
make install
Clone this repository
https://github.com/michelpl/stock-api.git
Enter in repository folder
cd moneys
Create the .env file
Use .env.example as example
cp src/.env.example src/.env
Running services
docker-compose up -d
Get the composer dependencies
docker-compose exec webapi composer update -vvv
Running Laravel migrations
docker-compose exec webapi php artisan migrate
make stop
or
docker-compose down
docker-compose exec webapi php artisan schedule:run
http://localhost:8000/api
For changing project files in your machine, you need to run the following permissons
$ find src/ -type d -exec chmod 775 {} \;
$ find src/ -type f -exec chmod 664 {} \;
$ chown -R www-data:$USER src
or
make permissions
make test
or
docker exec -it webapi php artisan test
You can find all the api logs on src/storage/logs
Or just executing the following command
make show_logs