Web Client App for tunga.io
- run this command from project root
npm install webpack -g
npm install webpack-dev-server -g
npm install
- Install ImageMagick
- run this command from project root
To connect to the test/sandbox API at http://sandbox.tunga.io/api/
npm run watch
To connect to a local version of the API running on your machine at http://localhost:8000/
npm run watch:local
- A new browser tab with automatically open at http://127.0.0.1:8080/ (The browser will auto reload when changes are made to the code)
You can find our contribution guide here: https://github.com/tunga-io/tunga-web/blob/master/CONTRIBUTING.md
It's important to read if you want to contribute to this repo.
Contributions that don't follow recommendations in our contribution guide may not be reviewed or accepted.
- Push changes to
develop
branch - Run the following commands
npm run deploy:sandbox
or
cd .ansible
ansible-playbook deploy.yml -i env/sandbox
- Push changes to
master
branch - Run the following commands
npm run deploy
or
cd .ansible
ansible-playbook deploy.yml -i env/prod
- run the following commands from project root
npm install
npm run build:sandbox
- copy contents of /build folder to webserver
- run the following commands from project root
npm install --production
npm run build
- copy contents of /build folder to webserver