- Go to the Tasks directory.
- Create virtual environment: python -m venv venv_name.
- Activate virtual environment: source venv/bin/activate (Linux/Mac), venv\Scripts\activate (Windows).
- Install the required dependencies: pip install -r requirements.txt.
- Prepare your MySQL database: install mysql server directly or via docker, create user, database, grant permission to user. (or just use sqlite3 instead).
- Create .env file in the Tasks directory for storing sensitive data, copy all variables from env_example.txt to .env and assign your data.
- Run django management command: python manage.py migrate.
- Run tests: python manage.py test.
- You are ready to go, run python manage.py runserver to be able to access all endpoints.
- Visit localhost:8000/swagger/ to see all available endpoints.