All Steps are run using docker cli from the root directory
- Install PHP Dependencies
docker run --rm --interactive --tty --volume "$PWD/server":/app composer install
- Install Node Dependencies
docker run -it --rm -v "$PWD/client":/app -w "/app" node:latest npm install
- Build Assets
docker run -it --rm -v "$PWD/client":/app -w "/app" node:latest npm run build
- Run Servers
- Client
docker run -d -p 8882:8080 --name=demo-client --rm -v "$PWD/client/public":/app -w "/app" node:latest npx http-server
- Server
docker run -d -p 8881:80 --name=demo-server --rm -v "$PWD/server":/var/www php:8-apache
- PHPUnit
docker run --rm -v "$PWD/server":/app -w "/app" php:8-apache ./vendor/bin/phpunit
- Jest
docker run -it --rm -v "$PWD/client":/app -w "/app" node:latest npm run test
- Stop Docker Containers
docker stop demo-client
docker stop demo-server
- Improve asset creation - it is a mix of webpack/babel for react, and postcss for tailwind.
- Improve structure of react components
- Improve react tests
- Include CI
- Host on AWS