auabake / pezesha

Money Transfer Project user can move funds across accounts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pezesha

Pezesha

Run with Docker

Docker should be installed and running on your computer.

 docker pull auabake/pezesha
docker run -p 8000:8000 auabake/pezesha

To view the docker image use this link

https://hub.docker.com/r/auabake/pezesha

the application will be running on http://127.0.0.1:8000/api/v1/swagger/ you can access with Swagger or Postman

Run with Docker Compose

Docker should be installed and running on your computer.

Clone the repo cd into the repo.

Run services:

docker compose up -d --remove-orphans

Bring services down:

docker compose down

On Windows / Linux

Install python 3.11

Install requirements

pip install -r reuirements.txt

Run the project

python manage.py runserver

Delployment CI/CD Devops

The docker image is deployed to the Image registry. You simply pull and run the image. In your pipeline.

Auth Endpoint

auth

Go to this endpoint use username:pezesha password:pezesha

auth

Copy access token

auth

Go to authorize and paste the token, the close.

Create Account Endpoint

auth

Use this to create account

{
  "account_name": "test",
  "account_type": "current_account",
  "balance": "1000"
}

List accounts Endpoint

auth

http://127.0.0.1:8000/api/v1/accounts/1/

This will list the account with id 1

Money Transfer Endpoint

auth

{
  "from_account": 2,  
  "to_account": 1,    
  "amount": 2000
}

About

Money Transfer Project user can move funds across accounts.


Languages

Language:Python 92.1%Language:Dockerfile 7.9%