Citizen-facing public site for Money to Prisoners
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.tx
mtp_send_money
requirements
.dockerignore
.editorconfig
.gitignore
Dockerfile
LICENSE.txt
README.md
manage.py
run.py
send_money.ini
setup.cfg

README.md

Send Money to Prisoners

Dependency Status devDependency Status

Citizen-facing public site for Money to Prisoners

Running locally

In order to run the application locally, it is necessary to have the API running. Please refer to the money-to-prisoners-api repository.

Once the API is running locally, run

./run.py start

This will build everything (which will initially take a while) and run the local server at http://localhost:8004/.

Alternative: Docker

In order to run a server that's exactly similar to the production machines, you need to have Docker installed. Run

./run.py local_docker

and you should eventually be able to connect to the local server.

Developing

With the ./run.py command, you can run a browser-sync server, and get the assets to automatically recompile when changes are made, run ./run.py serve instead of ./run.py start. The server is then available at the URL indicated.

./run.py test

Runs all the application tests.

You can connect a local version of money-to-prisoners-common for development by pre-pending the following task to the run script.

python_dependencies --common-path [path]

Translating

Update translation files with ./run.py make_messages – you need to do this every time any translatable text is updated.

Pull updates from Transifex with ./run.py translations --pull. You'll need to update translation files afterwards and manually check that the merges occurred correctly.

Push latest English to Transifex with ./run.py translations --push. NB: you should pull updates before pushing to merge correctly.

Deploying

This is handled by MOJ Digital's CI server. Request access and head there. Consult the dev runbook if necessary.