LandRegistry/devenv-casework

Name: devenv-casework

Owner: HM Land Registry

Description: Test development environment for LR casework team

Created: 2015-05-08 00:50:16.0

Updated: 2015-06-11 16:26:52.0

Pushed: 2015-10-29 11:24:52.0

Homepage: null

Size: 340

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

devenv-casework

Early development environment for the Digital by Default Casework project.

About

This development environment is designed to be easy to use, and function very similarly to a server environment.

Requirements:

TL;DR

Inside the project folder, simply run vagrant up and then connect to your projects on the ports defined in configuration.yaml

Useful commands

All the apps are run by supervisord, here are some helpful aliases for supervisorctl.

us                - view running status of all apps (via supervisorctl)
 {name of app}    - stop app running in supervisord
t {name of app}   - start app running in supervisord
art {name of app} - restart app running in supervisord
ad                - reload supervisord config and restart all apps
tsup              - start supervisord (needed after a vagrant halt/vagrant up)

To run the app in the terminal (i.e. not via supervisord, so you can directly see the output)

un {name of app}

To quickly view the logs of an app

og {name of app}
Apps
Cases API:

localhost:5001

Cases Frontend:

localhost:5002

Register Metadata

localhost:5003

Update Register

localhost:5004

Titles API:

localhost:5005

Auto Process Charge

localhost:5006

Daylist Adapter:

localhost:8888/DaylistAdapter

Titles Adapter:

localhost:8888/TitlesAdapter

Notes

The development environment relies on Vagrant. Currently only Virtualbox is supported as a provider.

For further information on managing Vagrant you can read the official documentation.

TIP: You can improve the start-up time of the development environment by installing the cachier Vagrant plugin.

You can install it by running:

grant plugin install vagrant-cachier
How to query the postgres database with PSQL

Login to the centos virtual machine. Switch to root with:

 -i

login to the system of record database with this:

 -U workingregister workingregister

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.