Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
baarkerlounger 17853f7b9f Generate page/question views dynamically 3 years ago
.github/workflows Add ADR for Turbo Frame form submission flow (#21) 3 years ago
app Generate page/question views dynamically 3 years ago
bin
config Generate page/question views dynamically 3 years ago
db Spec form answer saving and fix for other household members 3 years ago
doc/adr Add ADR for Turbo Frame form submission flow (#21) 3 years ago
lib
log
public
spec Refactor form definition to config file 3 years ago
storage
tmp
vendor
.browserslistrc
.dockerignore
.editorconfig
.env.example Avoid whitespace syntax mismatch between docker-compose and rails c 3 years ago
.gitignore
.overcommit.yml
.rspec
.rubocop.yml
.ruby-version
Dockerfile
Gemfile
Gemfile.lock update gemfile for latest Mac OS 3 years ago
LICENSE
README.md
Rakefile
babel.config.js
config.ru
docker-compose.yml
package-lock.json
package.json
postcss.config.js
yarn.lock

README.md

Data Collection App

This is the codebase for the Ruby/Rails app that will handle the submission of Lettings and Sales of Social Housing in England data.

Required Setup

Pre-requisites

  • Ruby
  • Rails
  • Postgres

Setup Quickstart

Copy the .env.example to .env and replace the database credentials with your local postgres user credentials.

Create the database rake db:create

Start the rails server

rails s

This starts the rails server on localhost:3000

or using Docker

docker-compose build
docker-compose run --rm app rails db:create
docker-compose up

This exposes the rails server on localhost:8080.

Note docker-compose runs the production docker image (RAILS_ENV=production) as the Dockerfile doesn't include development gems to keep the image size down.

Infrastructure

The cloud infrastructure running this application is set up using the infrastructure repository