- Homebrew
- MacOS package manager
- uv
- Backend Python package, project and version manager (replaces pip, poetry, pyenv and virtualenv).
It also installs the Python version that Samfundet4 expects (defined in
backend/.python-version).
- Backend Python package, project and version manager (replaces pip, poetry, pyenv and virtualenv).
It also installs the Python version that Samfundet4 expects (defined in
- yarn
- Frontend dependency manager
First clone the Samfundet4 repository.
git clone git@github.com:Samfundet/Samfundet4.gitInstall the frontend dependencies
cd Samfundet4/frontend
yarnInstall the backend dependencies
cd ../backend
uv syncThen apply migrations and run seed script (the seed script adds test data to our database)
uv run python3 manage.py migrate
uv run python3 manage.py seedBoth the backend and frontend directories have an .env.example file. In each directory, copy this file to .env
and adjust any values as needed. You may for example want to change the default Django superuser username and
password (DJANGO_SUPERUSER_USERNAME and DJANGO_SUPERUSER_PASSWORD).
Start backend:
cd backend
uv run python3 manage.py runserverStart frontend:
cd frontend
yarn startNow that you've got the project up and running, check out the post-install instructions: