yarn install
- Create
config/apps.json
and add:
[
{
"short_name": "timestamp",
"name": "Timeføring",
"type": "app",
"script": "http://localhost:8080/app.bundle.js",
"config": {
"apiUri": "http://localhost:3001"
}
}
]
Use this to connect to the locally running floq-db
API_TOKEN_SECRET="devModeSuperSecretdevModeSuperSecretdevModeSuperSecret"
yarn start
yarn install
- Create the file apps.json, e.g.
cp config/apps.json.dev config/apps.json
- You have the possibility to add/remove modules from
apps.json
- The selected modules have to be running at the specified endpoints/ports
- You have the possibility to add/remove modules from
- To make API-calls from your application, you need correct google-tokens, which are created using env-variables. If you go to
src/auth.js
, open thecommon
library, then theauth.js
file in common, you can see it's trying to fetchprocess.env.API_TOKEN_SECRET
. You need to set this env-variable (either directly in this file, or any other way you prefer), otherwise querying the API won't work. These are stored in 1password. yarn start