Install Docker Desktop. Docker desktop must be running for the development commands to work.
docker compose up
This command starts the database (at port 5432
) and the website
(at http://localhost:8000/).
If AWS Credentials are not configured, you will need to provide an Airtable token and Mapbox API key:
GATSBY_MAPBOX_API_KEY='XXXX' AIRTABLE_API_KEY='XXXX' docker compose up
You can create an airtable token in the developers settings in airtable.
While the database is running:
sh/restore-db
If you don't have AWS CLI or credentials, you will get a message saying "AWS CLI not found, please download database dump manually." In this case, download the tracking database dump file, name it
dump-tracking
, and place it in the./data/dumps/
directory.
You may get an error saying the port is already in use if your system is already running
postgres
, if you get that message, shut down your instance ofpostgres
first
To connect using a graphical database management tool (e.g. dBeaver, pgAdmin):
host: localhost
database: tracking
username: postgres
password: 1234
While containers are running, visit: