Skip to content

f-eld-ch/sitrep

Sitrep

Lage Lage2 Overview Editor Feed Triage

Demo-Environment

The current develop version is automatically deployed to: https://demo.sitrep.ch Login is possible with your Github account or sign-up for a new account at Auth0.

Local Development Environment

A simple local development environment can be created using docker compose and the frontend can be run using yarn.

  1. Install docker / docker compose and yarn / node 16+

  2. Create a .env.local file setting these variables:

Oauth2_PROXY clients can be created using Auth0....

OAUTH2_PROXY_CLIENT_ID=sitrep
OAUTH2_PROXY_CLIENT_SECRET=ds8LCRW4jhB58nWdMgZHeVISqx3O3e1o3g0LEr9H8tM=   # generate with: openssl rand -base64 32 | tr -- '+/' '-_'
OAUTH2_PROXY_COOKIE_SECRET=kvicWov5Y_w10r2vmnxJTUTugMUtBp6_R4loxuANMtg= # generate with: openssl rand -base64 32 | tr -- '+/' '-_'
HASURA_GRAPHQL_ADMIN_SECRET=388HMfQ00gEyg636O63S1jxRODTSoAiu_XHa0fXhtRo=  # generate with: openssl rand -base64 32 | tr -- '+/' '-_'
POSTGRES_PASSWORD=postgrespassword

OAUTH2_PROXY_REDIRECT_URL=http://localhost:3000/oauth2/callback # port for yarn dev server%
  1. Run docker compose environment:
docker compose --env-file .env.local up -d

If you are running on a SElinux enabled machine, use the selinux compose file:

docker compose -f docker-compose.selinux.yml --env-file .env.local up -d
  1. Run yarn
cd ui && yarn start
  1. Open localhost:3000. This will automatically proxy to the OAUTH2 proxy which will then proxy requests towards the graphql-engine with its /v1/graphql. Authentication will be handled by the local dex IDP with it's mock provider. Just click on Log in with Example.

Translations

To correct or add translations we invite you to help us out on Transifex. We currently support the following languages:

  • German (de)
  • English (en)
  • Italian (it)
  • French (fr)

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.