node v12.14.1 (lts)
npm v6.14.5
To start the project, make sure to have a cockpit server running and the environment variables set.
To run the development server, type on a terminal:
npm run start
The following environment variables must be set in a file such as .env
:
API_URL
: URL for the Cockpit serverTOKEN_ROUTE
: Route to GET the anonymous token. Must start with/
GOOGLE_CLIENT_ID
: Client ID gotten from Google Developers Dashboard
Example:
API_URL='http://localhost:5000'
TOKEN_ROUTE='/token'
GOOGLE_CLIENT_ID='YOUR_ID_HERE.apps.googleusercontent.com'