Skip to content

Repository files navigation

DogDish

Home page mockup

image

To start the Postgres instance using docker copy the example.env file and name it .env and fill out the environment
variables.

Run the command below to start the container:

docker compose -f storage/compose.yaml up -d

To test to see if the container was spun up correctly with the tables created use the psql command below, be sure to replace the environment variables:

psql -h localhost -U $DATABASE_USER -d $DATABASE_NAME -W

Once you have been connected run the command \dt to see the tables that were create for your database.

Once you are done you can run the \q command to terminate your connection.

Destroy the database with the docker command below:

docker compose -f storage/compose.yaml down

Spin up

Database handler

cd database_handler
flask --app database_handler run

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages