-
Ensure you have Docker and Docker Compose installed.
-
Clone the repository:
git clone https://github.com/yastcher/drf_simple_wallet.git cd drf_simple_wallet
-
Install dependencies using Poetry:
poetry install
-
Set up environment variables. Rename .env.example to .env and set the following variables
SUPERUSER=your_username SUPERUSER_PASSWORD=your_password
-
Start mysql server and apply database migrations:
docker compose up mysqldb -d --build python manage.py migrate
-
Create a superuser to access the admin panel:
python manage.py createsuperuser
-
Start the development server:
python manage.py runserver 127.0.0.1:8000
-
Access the admin panel at http://127.0.0.1:8000/admin/ Access the API at http://127.0.0.1:8000/api/
-
For run the tests:
pytest -s -v --cov --cov-report=term
-
Ensure you have Docker and Docker Compose installed.
-
Clone the repository:
git clone https://github.com/yastcher/drf_simple_wallet.git cd drf_simple_wallet
-
Set up environment variables. Rename .env.example to .env and set the following variables
DB_HOST=mysqldb SUPERUSER=your_username SUPERUSER_PASSWORD=your_password
-
Start service in docker:
docker compose up -d --build