The Gatherings Common Task Management
The best way to go about this is to use Docker. Pull this repo, then run:
docker compose up -d --build
docker compose exec app python manage.py migrate
After this, you might want to create a user for logging in:
docker compose exec app python manage.py createsuperuser
This user can be used to login in the admin panel, found here: /admin
- pyenv: Used to manage Python versions.
- poetry: Dependency management and packaging tool for Python.
- nvm: Node Version Manager, used to manage Node.js versions.
- .env file: Copy the
example.envfile to.envand fill in the required environment variables.
- Install pyenv:
- Follow the instructions on the pyenv GitHub repository to install pyenv.
- Install the required Python version for the project:
pyenv install -s
- Install poetry:
- Follow the instructions on the poetry documentation to install poetry.
- Install project dependencies:
poetry install
- Install nvm:
- Follow the instructions on the nvm GitHub repository to install nvm.
- Install the required Node.js version for the project:
nvm install
- Install django-tailwind dependencies:
-
poetry run python src/manage.py tailwind install
- Run the Project:
- Apply migrations and start the development server: (you need two terminals running simultaneously)
# terminal 1 poetry run python src/manage.py tailwind start # terminal 2 poetry run python src/manage.py migrate poetry run python src/manage.py runserver
- Create a superuser:
- Create a superuser to access the Django admin panel:
poetry run python src/manage.py createsuperuser
- Log in via the admin panel at
/admin.