/payment

Primary LanguagePythonMIT LicenseMIT

Bakai Payment Gateway

Used clean architecture.

Table of Contents

Setup

Configuration is stored in .env, for examples see .env.examples

Create environment file .env:

cp .env.example .env

Setup on a local machine with Docker and Docker Compose

See all commands:

make help

Up project with Docker:

make up

See make configuration on Makefile

Installing on a local machine with venv

  • Create and activate your virtual environment
  • Install requirements

Install requirements:

python3 -m venv venv
source venv/bin/activate # unix system
pip install -r requirements.txt
alembic upgrade head

Development servers:

# run dev server
uvicorn src.asgi:app --reload --host 0.0.0.0 --port 8000 --log-level debug --reload

App testing

Add user with balance 100.00 to the database:

make create-user

Check documentation in swagger

Linting and Formatting

Linting completed with flake8

flake8 --ignore=E501 --exclude=venv,docs .

Formatting completed with black

black exclude=venv,env,docs,migrations .