waterthetrees / wtt_db

waterthetrees.com local dev database
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

Allow devs to run complete local db environment #59

Open PGrad opened 1 year ago

PGrad commented 1 year ago

Problem Description

Currently it's difficult to set up a local DB that has all of the tables created and loaded with seed data: you have to run the .sql files manually and there's still a lot of errors. The work here is to:

  1. have the docker-compose.yml file automatically run the .sql files under wtt_db/tables in the correct order, accounting for tables that need to be created before others because of foreign keys.
  2. fix any errors that appear when running docker-compose.yml.
  3. confirm that you can login as the "trees" user with the correct password (this requires setting up an .env file, reach out to @zoobot or me on this).