First you need to create a .env file from .env.docker.sample file to add your FOREST_ENV_SECRET and FOREST_AUTH_SECRET
Normally with docker, you just have a few command to use, in the correct folder:
cd src/_example/django
docker compose up -d # to start in background
# Example project is now running on port 8000 with auto reload
docker compose logs -f # to see the output
docker compose down # to cleanup.env at the root of this example project, it will be used, overriding environment variables defined in the docker-compose.yaml file.
To manage your demo's dependencies you should install poetry.
curl -sSL https://install.python-poetry.org | python3 -- If you're having SSL issue with Python while installing poetry, visit this link: https://matduggan.com/til-python-3-6-and-up-is-broken-on-mac/
- Make sure poetry is in your $PATH, sometimes on mac there is conflict between python installed graphically and installed with brew. You can use these commands to help you to find the problems
which python
which python3
which python3.10
echo "PATH=$PATH;~/Library/Application Support/pypoetry/venv/bin" >> ~/.zshrc # this is default installation path for poetry on macpoetry self add poetry-dotenv-pluginpython -m venv venv # the last 'venv' is the relative path where you want your virtual envsource venv/bin/activate # adapt venv with the path previously usedpoetry installpoetry run poe init-dbpoetry run poe populate-dbpoetry run poe runserverThe last needed step is to onboard the project on forestadmin