Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 1.57 KB

File metadata and controls

57 lines (36 loc) · 1.57 KB

Getting started

Getting the basics

This is a Rails application, you will need access to:

  • Ruby .ruby-version
  • Node .node-version
  • Homebrew

Make sure you can run appropriate versions in you development environment.

  • Run script/initial_setup to install dependencies

Setup Microsoft SQL Server environment

As we run Microsoft SQL Server, we have to run it inside a container. To make this as simple as we can we use docker-compose to launch an appropriate instance.

  1. Duplicate .env.database.example as .env.database and set:

    ACCEPT_EULA=Y
    MSSQL_SA_PASSWORD=<database_password>
    

    Where <database_password> is at least 8 characters including uppercase, lowercase letters, base-10 digits and/or non-alphanumeric symbols, see the image docs.

    These are then used by the docker-compose.database-only.yml to launch and instance of SQL Server.

  2. Create .env.development.local and .env.test.local and add:

    DATABASE_PASSWORD=<database_password>
    

    Where <database_password> is the same as in .env.database.

    The application will use these credentials to access the database and so must all be the same.

Seeding the database

Read the seeding the database documentation.

Get the server running

With everything setup you can start the backing services and run the app with:

script/server

We have a bunch of devloper scripts to help day to day, see the scripts documentation.