ClausMunch / ching-shop

Source code for ching-shop.com

Home Page:https://www.ching-shop.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://www.ching-shop.com/


Languages

Language:PHP 81.8%Language:HTML 12.7%Language:TypeScript 1.4%Language:CSS 1.3%Language:XSLT 0.7%Language:Shell 0.6%Language:Python 0.5%Language:JavaScript 0.5%Language:Nginx 0.2%Language:Vue 0.1%Language:Makefile 0.0%Language:Ruby 0.0%