...
Clone the repo where ever you want on your computer using
git clone [<httpshttps://github.com/uw-midsun/strategy_xv.git>](<https://github.com/uw-midsun/strategy_xv.git>git)
(don’t need to repeat this step unless setting up)Run Docker Desktop
Open the repo in an IDE
In a terminal/shell inside the IDE, go to the
/database
folder and rundocker-compose up
to start the database. The database credentials are username=user
, password=password
, and root password=root
. The database will be running on3306:3306
and is calledmidsun_dev_db
Run
python [ seed.py](<http://seed.py>)
in the/database
folder to seed the databaseCREATE VID TO SHOW HOW TO CONNECT TO DATABASE
Once you’re done with your dev work, stop docker by running
docker-compose down
in the/database
folderStop all your processes
Exit docker desktop (in the taskbar)
...
Open a WSL terminal (open start menu then type in
WSL
, it has a penguin icon)Go to your base directory by running
cd
onceClone the repo where ever you want on your computer using
git clone [<httpshttps://github.com/uw-midsun/strategy_xv.git>](<https://github.com/uw-midsun/strategy_xv.git>git)
(don’t need to repeat this step unless setting up)Run Docker Desktop
Open the repo in an IDE
In a terminal/shell inside the IDE, go to the
/database
folder and rundocker-compose up
to start the database. The database credentials are username=user
, password=password
, and root password=root
. The database will be running on3306:3306
and is calledmidsun_dev_db
Run
python [ seed.py](<http://seed.py>)
in the/database
folder to seed the databaseCREATE VID TO SHOW HOW TO CONNECT TO DATABASE
Once you’re done with your dev work, stop docker by running
docker-compose down
in the/database
folderStop all your processes, close all your WSL windows and close your IDE
Exit docker desktop (in the taskbar)
Open the command prompt and run
wsl --shutdown
to stop WSL (otherwise it’ll eat up your RAM). Open task manager, sort by memory usage, and make sure there is no “vmmem” process