Skip to content

uk-gov-mirror/ONSdigital.ras-party

 
 

Repository files navigation

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 Variable Description Default
LOGGING_LEVEL Level of the logging 'INFO'
DATABASE_URI URI used to connect to the database 'postgresql://postgres:postgres@localhost:6432/postgres'
AUTH_URL URL of the auth service
CASE_URL URL of the case service
COLLECTION_EXERCISE_URL URL of the collection exercise service
FRONTSTAGE_URL URL of the respondent facing website
IAC_URL URL of the iac service
SURVEY_URL URL of the survey service
NOTIFY_URL URL of the notify-gateway service http://notify-gateway-service/emails/

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.5%
  • Other 0.5%