Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Software prerequisites:

MacOS

  1. Clone the repo where ever you want on your computer using git clone https://github.com/uw-midsun/strategy_xv.git) (don’t need to repeat this step unless setting up)

  2. Run Docker Desktop

  3. Open the repo in an IDE

  4. In a terminal/shell inside the IDE, go to the /database folder and run docker-compose up to start the database. The database credentials are username=user, password=password, and root password=root. The database will be running on 3306:3306 and is called midsun_dev_db

  5. Run python seed.py in the /database folder to seed the database

  6. CREATE VID TO SHOW HOW TO CONNECT TO DATABASE

  7. Once you’re done with your dev work, stop docker by running docker-compose down in the /database folder

  8. Stop all your processes

  9. Exit docker desktop (in the taskbar)

Windows

  1. Open a WSL terminal (open start menu then type in WSL, it has a penguin icon)

  2. Go to your base directory by running cd once

  3. Clone the repo where ever you want on your computer using git clone https://github.com/uw-midsun/strategy_xv.git) (don’t need to repeat this step unless setting up)

  4. Run Docker Desktop

  5. Open the repo in an IDE

  6. In a terminal/shell inside the IDE, go to the /database folder and run docker-compose up to start the database. The database credentials are username=user, password=password, and root password=root. The database will be running on 3306:3306 and is called midsun_dev_db

  7. Run python seed.py in the /database folder to seed the database

  8. CREATE VID TO SHOW HOW TO CONNECT TO DATABASE

  9. Once you’re done with your dev work, stop docker by running docker-compose down in the /database folder

  10. Stop all your processes, close all your WSL windows and close your IDE

  11. Exit docker desktop (in the taskbar)

  12. 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

  • No labels