Skip to content

DoWhileNotDone/turbine-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Demo Turbine App

Setup

All Steps are run using docker cli from the root directory

  1. Install PHP Dependencies
docker run --rm --interactive --tty --volume "$PWD/server":/app composer install
  1. Install Node Dependencies
docker run -it  --rm -v "$PWD/client":/app -w "/app" node:latest npm install
  1. Build Assets
docker run -it  --rm -v "$PWD/client":/app -w "/app" node:latest npm run build
  1. 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

View Website

http://127.0.0.1:8882/

Run Tests

  1. PHPUnit
    docker run --rm -v "$PWD/server":/app -w "/app" php:8-apache ./vendor/bin/phpunit
  1. Jest
    docker run -it  --rm -v "$PWD/client":/app -w "/app" node:latest npm run test

Shutdown

  1. Stop Docker Containers
docker stop demo-client
docker stop demo-server

To Do

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published