Development-setup
Requirements
Backend
-
Python
I just plan to support the most recent version of Python.
At least Python 3.10 - Caddy
- Pipenv
- Redis
- Meilisearch
- (Optional) Caddy
Frontend
Setup
-
Clone the repo:
git clone https://github.com/mawoka-myblock/classquiz -
Install the dependencies
-
Python:
pipenv install -
JS:
cd frontend && pnpm i
-
Python:
-
Start the other services
-
Caddy:
caddy run -
Redis:
redis-server
-
Caddy:
-
Set your config up in your .env-file. What you have to set up can you see in the
classquiz/config.py-file. The things you have to set are the following:hcaptcha_keymail_addressmail_passwordmail_usernamemail_servermail_portsecret_keymeilisearch_url
-
Start the server
-
Backend:
pipenv run uvicorn classquiz:app --reload -
Frontend:
cd frontend && pnpm dev
-
Backend:
BEFORE you submit a Pull-Request
Please use Gitmoji for your commits.
Frontend
Please format and lint your code with
pnpm run format && pnpm run lint
Backend
IDK, just check that it works!