- Clone the repository
git clone git@github.com:ahmed-bermawy/koinz-assignment.git
- Run
composer install
- Run
php artisan key:generate
- Create a new database and update the
.env
file with the database credentials - Run
php artisan config:cache
- Run
php artisan migrate
- Run
php artisan db:seed
- Run
php artisan serve
- To access api documentation visit
http://localhost:8000/api/documentation
- Build the image by run
docker-compose build
- Run the container by run
docker-compose up -d
- To migrate database run
docker exec -it koinz-assignment php artisan migrate
- To seed database run
docker-compose exec koinz-assignment php artisan db:seed
- To access the container run
docker exec -it koinz-assignment /bin/bash
- After installation is finished you can access the application on
http://localhost:8006/
- To access api documentation visit
http://localhost:8006/api/documentation