Development environment requirements :
- Docker >= 17.06 CE
- Docker Compose
Enviroment files were committed to make easier testing the challenge.
-
Enter the laradock folder and run the containers.
cd laradock docker-compose up -d nginx mysql workspace
-
Open your /etc/hosts file and map your localhost address 127.0.0.1 to the julian_bustamante.jobsitychallenge.com domain, by adding the following:
127.0.0.1 julian_bustamante.jobsitychallenge.com
-
Install Composer and NPM dependencies.
docker-compose run workspace composer install docker-compose run workspace npm install
-
Generate symbolic link to Storage
docker-compose run workspace php artisan storage:link
-
Create the database and grant permissions
docker-compose exec mysql mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS jobsitychallenge; GRANT ALL ON jobsitychallenge.* TO 'default'@'%'"
-
Run migrations
docker-compose run workspace php artisan migrate
-
Run seeders to create initial data.
docker-compose run workspace php artisan db:seed
-
Compile assets
docker-compose run workspace npm run dev
-
Go to
http://julian_bustamante.jobsitychallenge.com