- All software I ask you to install is free for non-business use
- I organized the directories in the following way
bin/
contains the executable shell scriptsdocs/
contains the additional documentation files (they end in.md
)res/
contains the additional resources like image filessrc/
contains the SQL filesmigrations/
contains the initialized on startup database SQL commandsscripts/
contains the on-the-fly, ad-hoc SQL commands
- Install docker
- Only If you are running on Windows OS
- Install git
- For all the following commands use the
git bash
terminal since it supports running scripts ending in.sh
-
Ensure docker is running
- You should see a little whale in the taskbar
- You may have to search for and run
docker
in your installed local applications - (Optional) You can check if docker is running from the following command
docker ps
- if you see an error that includes
Cannot connect to the Docker daemon
, then docker is not running locally
- if you see an error that includes
- You should see a little whale in the taskbar
-
Run the database docker container
./bin/start_db.sh
-
Check the status of the database docker container
-
Once running, you can now connect to the database at localhost:5432
- The database info can all be changed in the
bin/start_db.sh
file under theSet local variables
comment. - The current database settings are:
HOST = localhost
PORT = 5432
DB_NAME = postgres
USERNAME = postgres
PASSWORD = password
- The database info can all be changed in the
-
(Optional) To connect to the local database there are the following applications you can use
-
(Optional) To stop & remove the database docker container run
./bin/remove_db.sh
-
(Optional) If you want to make changes to the initialization of the database (
src/migrations/*.sh
), you will need to restart the database docker container./bin/start_db.sh
-
(Optional) For a command line interface into the database container
./bin/enter_db.sh