VIKING GARAGE app
git clone git@github.com:michalmikolajczyk/viking-garage-frontend.git
cd viking-garage-frontend
- Make sure you have docker installed and running on your local machine.
scripts/docker-setup-local.sh
- Access the app via your (i.e. the host's) localhost, port 3000
scripts/setup.sh
To run application you have to set env vars. Check app.json
for required variables and default values. For local build you can create .env
file in root directory with variables (for details check out dotenv)
npm i
npm start
You can now access the app through your localhost, default port: 3000.
Please look into Heroku Pipelines Docker - Travis CI - Github - Heroku Pipeline - Review - Development - Staging - Production
Application use debug (npm module) for logs on client & server side (checkout link for docs)
To enable logs from the production server, set env var DEBUG=server
To enable logs from the app on client side, set in a localStorage
:
localStorage.setItem('debug', 'app:*')
To add logger to a new module:
import debug from 'debug';
const log = debug('app:NameOfModule');
log('goes to stdout with prefix "app:NameOfModule"');