Spin up a dev environment:
- Clone repo
- Ensure
build-essential
is installed on your platform - Fetch all module dependencies:
$> yarn
- Copy
.env.example
to.env
and update values (see below) - Make sure there is a Gantree web backend instance running
FirebaseUI is not compatible out of the box with Rollup. You need to make one tweak to the firebaseui code.
Edit /node-modules/firebaseui/dist/ems.js
and change import * as firebase from 'firebase/app'
to import firebase from 'firebase/app'
(there's most likely a workaround for this somewhere)
./dev_start.sh
If that doesn't work...
yarn dev
...todo
To see all required environment variables, refer to .env.example.
GRAPHQL_URL=http://localhost:4000/graphql
graphql endpoint
SOCKETIO_URL=http://localhost:5100
socketio URL
MODE=dev
production|dev
FIREBASE_APIKEY=[xxx]
firebase credentails
FIREBASE_AUTHDOMAIN=[xxx]
firebase credentails
FIREBASE_DATABASEURL=[xxx]
firebase credentails
FIREBASE_PROJECTID=[xxx]
firebase credentails
FIREBASE_STORAGEBUCKET=[xxx]
firebase credentails
FIREBASE_MESSAGINGSENDERID=[xxx]
firebase credentails
FIREBASE_APPID=[xxx]
firebase credentails
Graphical elements sourced form Undraw