Doorkeeper Server application

Bence Balint b8aba28cea Merge branch 'dk-55' of kraxor/doorkeeper_srv into develop 2 سال پیش
.idea 2b732aeb8c DK-11 setup alembic 3 سال پیش
app 1394245e67 DK-55 implement Sentry tracing 2 سال پیش
scripts b1f9b59cf3 DK-35 implement pairing ID middleware 3 سال پیش
.gitignore 8a4d78b1dc DK-55 read Sentry settings from file 2 سال پیش
Dockerfile a56e67eb3e DK-55 fix Dockerfile 2 سال پیش
README.md 2c7635704d DK-55 fix readme formatting 2 سال پیش
docker-compose.yml 8a4d78b1dc DK-55 read Sentry settings from file 2 سال پیش
rebuild.sh e59b247fe1 DK-11 setup model testing 3 سال پیش
run_tests.sh 3c4db48408 DK-49 setup redis 2 سال پیش
sentry.json.example 8a4d78b1dc DK-55 read Sentry settings from file 2 سال پیش

README.md

DoorKeeper Server

Server application for the DoorKeeper project.

Developer setup

Getting started

Get a FireBase service account key, and place it in the project root as service-account.json, then run:

docker-compose up

... or to (re)build the application using BuiltKit:

COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose up --build

The app directory is mounted into the docker container and the server will reload on code changes.

Helper scripts

Run tests (will drop the database):

docker-compose up
./run_tests.sh

Remove all containers and data, then rebuild using BuiltKit:

./rebuild.sh

Monitoring and alerting

To enable Sentry integration, you must point the SENTRY_SETTINGS environment variable to a valid JSON file (see sentry.json.example).

For the development environment, just uncomment

SENTRY_SETTINGS: /sentry.json

in docker-compose.yml, then create a copy of the example configuration:

cp sentry.json.example sentry.json

and edit it to update the DSN URL.