Sign inSign up

sdcplatform/ras-party

By sdcplatform

•Updated over 5 years ago

Party micro service for RAS

Image
0

10K+

sdcplatform/ras-party repository overview

⁠RAS Party

⁠Overview

This is the RAS Party micro-service. See [Confluence] for further information.

The API is specified here⁠

⁠Setup

Install postgresql

brew install postgresql

Install pipenv

pip install pipenv

Use pipenv to create a virtualenv and install dependencies

pipenv install

you can also use the makefile to do this

make install

⁠Running

Install Docker⁠

docker-compose up

or use the makefile to run

make start

or run locally (this requires postgres running locally on port 5432):

pipenv run python3 run.py

To test the service is up:

curl http://localhost:8081/info

Note: Acceptance tests can be run to populate a local version with test data

⁠Tests

Ensure dev dependencies have been installed

pipenv install --dev

Run tests with makefile

make test

⁠Database

The database will automatically be created when starting the application Alembic is used for database migrations See README.md⁠ for alembic documentation

See Confluence⁠ for additional information.

⁠Configuration

Environment variables available for configuration are listed below:

Environment VariableDescriptionDefault
LOGGING_LEVELLevel of the logging'INFO'
DATABASE_URIURI used to connect to the database'postgresql://postgres:postgres@localhost:6432/postgres'
AUTH_URLURL of the auth service
CASE_URLURL of the case service
COLLECTION_EXERCISE_URLURL of the collection exercise service
FRONTSTAGE_URLURL of the respondent facing website
IAC_URLURL of the iac service
SURVEY_URLURL of the survey service
NOTIFY_URLURL of the notify-gateway servicehttp://notify-gateway-service/emails/⁠

Tag summary

Content type

Image

Digest

Size

258.6 MB

Last updated

over 5 years ago

docker pull sdcplatform/ras-party