Getting Started¶
Tip
We recommend students and teachers to use their Github accounts with Github's free Student/Teacher packages. This includes Github Pro and other beneficial software. However, this is not mandatory.
-
Fork the Simmate repository to your Github profile (e.g.,
yourname/simmate). The button to fork is at the top right of Simmate's home github page, near the "star repo" button. -
Clone
yourname/simmateto your local desktop. We recommend using GitKraken and cloning to a folder named~/Documents/git/. GitKraken is free for public repositories (including Simmate), but is also part of Github's free Student/Teacher packages. Their 6-minute beginner video provides a quickstart guide. -
Navigate to the cloned Simmate repository:
cd ~/Documents/git/simmate -
Install uv and use it to create your virtual environment and install all dependencies:
uv sync --all-extras -
Activate your new virtual environment.
# Windows .venv\Scripts\activate # Mac/Linux source .venv/bin/activate -
It is best practice to have an fresh, empty database when developing:
simmate database reset --confirm-delete --no-use-prebuilt -
Confirm everything is functioning correctly by running our tests
# you can optionally run tests in parallel # with a command such as "pytest -n 4" pytest -
In GitKraken, you will start with
mainbranch of your repository (yourname/simmate) checked out. Create a new branch and name it according to the changes you will make (e.g.my-new-feature). -
Open the
simmatefolder in your preferred IDE (we recommend Spyder or VS Code). Ensure your IDE is using the Python interpreter from the.venvfolder you just created. -
You're now set to explore the source code and modify or add files! Continue to the next section for guidance on formatting, testing, and submitting your changes to our team.