You will need an instance of Postgresql that is available locally (either running on your machine or in a container).
Copy .env.example to .env and update where necessary. You can then use these env variables as
follows:
env $(cat .env | grep -v '#' | xargs) mix ecto.migrate
env $(cat .env | grep -v '#' | xargs) iex -S mix phx.serverIf you are running Lightning locally, you can use the docker compose setup to run IT locally as well.
# Only needed for the initial setup - generate certs for use by the postgres container
./local_testing/generate_certs.sh# Start ImpactTracker up - it will listen on port 4001
docker compose -f local_testing/docker-compose.yml up --build -dConfigure you local Lightning instance to use http://127.0.0.1:4000 for usage tracking and you will be able to submit to this instance.
Copy .env.example to .env.test and update where necessary. You can then use these env variables
as follows:
env $(cat .env.test | grep -v '#' | xargs) mix test