A mentor and mentee matching app
Note: you can just use docker if you only want to get this up and going for testing
TODO: populate this section with how to setup required tools: editorconfig, pre-commit, docker, etc
Before you start make sure you have the following installed:
https://docs.djangoproject.com/en/5.1/ref/contrib/gis/install/geolibs/
We need to install these libraries and tell Django where to find them. This varies by your OS/Platform.
sudo apt-get install binutils libproj-dev gdal-binTODO: Show how to insert environment variable in a persistent manner
export GDAL_LIBRARY_PATH="/path/to/your/gdal/installation"
export GEOS_LIBRARY_PATH="/path/to/your/geos/installation"brew install postgisThen modify your ~/.zprofile file to add these lines
export GDAL_LIBRARY_PATH="/opt/homebrew/opt/gdal/lib/libgdal.dylib"
export GEOS_LIBRARY_PATH="/opt/homebrew/opt/geos/lib/libgeos_c.dylib"mentorme requires uv for development. The recommended way to install uv is to use pipx.
pipx install uvAlternatively, it is preferable on Mac to install uv using Brew:
brew install uvTo setup your local virtual environment run
uv venv
To make sure you have all your dependencies installed run this command
uv sync
activate the venv
source .venv/bin/activate
change directory and run manage.py commands
cd app
./manage.py migrate
./manage.py runserver
uv run manage.py migrate
uv run manage.py runserver
docker compose up --build
To run locally you'll need to have docker running on your machine.
then in your terminal, navigate to the folder which containers this file and type the following
docker compose up db
if you need to wipe your database and start again you can use this command, this will destroy all data.
docker compose down -v db
TODO: fill this with howto
TODO: fill this with how to