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.
|
|
4 years ago | |
|---|---|---|
| .github/workflows | 5 years ago | |
| app | 4 years ago | |
| bin | 5 years ago | |
| config | 4 years ago | |
| db | 4 years ago | |
| doc/adr | 5 years ago | |
| lib | 5 years ago | |
| log | 5 years ago | |
| public | 5 years ago | |
| spec | 4 years ago | |
| storage | 5 years ago | |
| tmp | 5 years ago | |
| vendor | 5 years ago | |
| .browserslistrc | 5 years ago | |
| .dockerignore | 5 years ago | |
| .editorconfig | 5 years ago | |
| .env.example | 5 years ago | |
| .gitignore | 4 years ago | |
| .overcommit.yml | 5 years ago | |
| .rspec | 5 years ago | |
| .rubocop.yml | 5 years ago | |
| .ruby-version | 5 years ago | |
| Dockerfile | 5 years ago | |
| Gemfile | 4 years ago | |
| Gemfile.lock | 4 years ago | |
| LICENSE | 5 years ago | |
| README.md | 5 years ago | |
| Rakefile | 5 years ago | |
| babel.config.js | 5 years ago | |
| config.ru | 5 years ago | |
| docker-compose.yml | 5 years ago | |
| package-lock.json | 4 years ago | |
| package.json | 4 years ago | |
| postcss.config.js | 5 years ago | |
| yarn.lock | 4 years ago | |
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