Skip to content

Public site to request personal information held by the MOJ

License

Notifications You must be signed in to change notification settings

ministryofjustice/request-personal-information

Repository files navigation


MoJ logo

Request Personal Information

repo standards badge

A public site to allow Subject Access Requests to be made for details of personal information held by the MoJ

Development

Working on the Code

Work should be based off of, and PRed to, the main branch. We use the GitHub PR approval process so once your PR is ready you'll need to have one person approve it, and the CI tests passing, before it can be merged.

Basic Setup

Cloning This Repository

Clone this repository then cd into the new directory

$ git clone [email protected]:ministryofjustice/request-personal-information.git
$ cd request-personal-information

Installing the app for development

Latest Version of Ruby

If you don't have rbenv already installed, install it as follows:

$ brew install rbenv ruby-build
$ rbenv init

Follow the instructions printed out from the rbenv init command and update your ~/.bash_profile or equivalent file accordingly, then start a new terminal and navigate to the repo directory.

Use rbenv to install the latest version of ruby as defined in .ruby-version (make sure you are in the repo path):

$ rbenv install

Dependencies

Node.js:

$ brew install node

Yarn

$ brew install yarn

Postgresql

$ brew install postgresql

Setup

Use the following commands to install gems and javascript packages then create the database

$ bin/setup
$ yarn install

Running locally:

$ bin/dev

The site will be accessible at http://localhost:3000.


Note: If you get an error that looks like

"objc[5100]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called."

Add the following to your shell dotfile

export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

then restart the server in a new terminal window.

Run tests:

$ bundle exec rspec

Run rubocop:

$ bundle exec rubocop

Jobs

After a request is completed, a Job will be created that will send the request to the track-a-query API using DelayedJob.

When running in development, no jobs are run.

Exceptions

Any exceptions raised in any deployed environment will be sent to Sentry.

About

Public site to request personal information held by the MOJ

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages