runtimerevolution / labs

0 stars 0 forks source link

labs

Runtime Labs

Getting Started

Local Env

Create a copy of the reference env file in the root of the project and update the values accordingly.

cp .env.sample .env.local

Test Env

Create a file named .env.test and the the following

TEST_ENVIRONMENT=True

DATABASE_HOST=localhost
DATABASE_USER=postgres
DATABASE_PASS=postgres
DATABASE_NAME=test
DATABASE_PORT=65433
DATABASE_URL=postgresql://${DATABASE_USER}:${DATABASE_PASS}@${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_NAME}

Run project

Here's the steps to setup the project locally:

  1. poetry shell
  2. poetry install
  3. make db_up
  4. make api or ENV=local make api
  5. ENV=test make tests