Source code for ching-shop.com.
You'll need Vagrant, VirtualBox and NFS installed.
git clone [email protected]:hughgrigg/ching-shop.git
cd ching-shop
git clone [email protected]:laravel/homestead.git ./vendor/laravel/homestead
cp Homestead.yaml.example Homestead.yaml
Change the map
key in Homestead.yaml
to where you have cloned the ching-shop repo.
Add this line to your hosts file (e.g. /etc/hosts
):
192.168.10.10 www.ching-shop.dev
Then set up the Vagrant box, ssh into it and check everything is set up:
vagrant up
vagrant ssh
cd ~/sites/ching-shop
.test.sh
You should now be able to access the development site at https://www.ching-shop.dev
You may want to trust the local certificate, for example with these instructions for Chrome.
phpunit --testsuite unit
phpunit --testsuite functional
phpunit --coverage-html build
phpcs --standard=./tests/analysis/phpcs.xml app
phpmd --strict app text ./tests/analysis/phpmd.xml
All tests and static analyses can be run with:
./test.sh
pip install -r ./infrastructure/requirements.txt
ansible-playbook ./infrastructure/ansible/web.yml