Skip to content

ClausMunch/ching-shop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ching Shop

Build Status StyleCI Coverage Status Dependency Status Codacy Badge SensioLabsInsight

Source code for ching-shop.com.

Up and running

You'll need Vagrant, VirtualBox and NFS installed.

git clone git@github.com:hughgrigg/ching-shop.git
cd ching-shop
git clone git@github.com: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.

Running tests

phpunit --testsuite unit
phpunit --testsuite functional
phpunit --coverage-html build

Static analysis

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

Deployment

pip install -r ./infrastructure/requirements.txt
ansible-playbook ./infrastructure/ansible/web.yml

About

Source code for ching-shop.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 82.0%
  • HTML 12.7%
  • TypeScript 1.4%
  • CSS 1.3%
  • XSLT 0.7%
  • Shell 0.6%
  • Other 1.3%