Open source project will include an API and a App for the Code Quizzes
- Vagrant
- Install the vagrant box
vagrant up
If the vagrant-docker-compose
gets installed, the command vagrant up
will need to be ram again
- Install composer packages
vagrant ssh
cd api
docker-compose exec api composer install
exit
- Install database migrations
vagrant ssh
cd api
docker-compose exec api bin/console doctrine:migration:migrate
- Load data fixtures
vagrant ssh
cd api
docker-compose exec api bin/console doctrine:fixtures:load
- Add the following entry to the
/etc/hosts
192.168.1.200 codequiz.local
Restart hosts. On Mac this is done by sudo killall -HUP mDNSResponder
To access the webserver go to codequiz.local
To access the database run the following
vagrant ssh
cd api
docker exec -it api-db-1 mysql -u root -p
The password is set in the DB service in docker-compose.yml
See our CONTRIBUTING page.