If you are not a developer, or you are using a Windows machine, we recommend running this application with Dev Containers or using Github Codespaces see (Running with Codespaces).
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
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.
-
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. -
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.
Read the seeding the database documentation.
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.