mminovv / payment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 .

About

License:MIT License


Languages

Language:Python 94.5%Language:Makefile 2.2%Language:Mako 1.9%Language:Dockerfile 1.5%