despo / teacher-vacancy-service

Department for Education's Teaching Jobs Beta

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Teacher Vacancy Service (TVS)

Prerequisites

  • Docker greater than or equal to 18.03.1-ce-mac64 (24245)

Setting up the project

  1. Copy the docker environment variables and fill in any missing secrets:
$ cp docker-compose.env.sample docker-compose.env
  1. Build the docker container and set up the database
bin/drebuild
  1. Follow these instructions to configure HTTPS

  2. Start the application

bin/dstart

Running the tests

There are two ways that you can run the tests.

In development

Because the setup and teardown introduces quite some latency, we use the spring service to start up all dependencies in a docker container. This makes the test run faster.

Get the test server up and running bin/dtest-server

Run the specs. When no arguments are specified, the default rake task is executed. bin/dspec <args>

Run the javascript tests bin/dteaspoon

Full run (before you push to github)

Rebuilds the test server, runs rubocop checks, all tests (both specs and javascript) and cleans up.

bin/dtests

Importing school data (optional)

Populate your envirnoment with real school data from the Edubase archive

bin/drake data:schools:import

db/seeds.rb contain sample school data so this is not required for development

About

Department for Education's Teaching Jobs Beta

License:MIT License


Languages

Language:Ruby 64.0%Language:HTML 14.1%Language:HCL 13.4%Language:JavaScript 5.6%Language:CSS 1.8%Language:Shell 0.7%Language:Dockerfile 0.2%Language:Smarty 0.0%