- A backend webserver for serving static assets and handling requests for dearborncodingclub.com.
- Ensure you have docker desktop installed locally.
- Run
docker run -p 8000:8000 --rm -it $(docker build -q .)
.
-
First, install direnv, as specified in the installation docs. (docs).
- As of the latest docs, you can run
curl -sfL https://direnv.net/install.sh | bash
.
- As of the latest docs, you can run
-
Brew install poetry with
brew install poetry
- Run
peotry install
from the root of the project. - Run
eval "$(direnv hook zsh)"
- Run
eval "$(pyenv virtualenv-init -)"
- Run
-
Next, install pyenv, and add
$HOME/.pyenv/bin
to the path of your respective shell. Then install Python 3.11.2- Install
pyenv
withbrew update
and thenbrew install pyenv
(or whatever version of Python is decided on for this repository).
- Install
-
Then, cd into the root directory of this repository and then type
direnv allow
- Cd into
/server
cd server
- Run
python manage.py runserver
orpython3 manage.py runserver
depending on where your python3 is located. - More documentation on how to set this up can be found here.