Card Transaction System

This project allows users to perform card operations (creation, deletion, updating, listing), view user operations in detail or in summary, and perform transactions with a card number.

About The Project

Built With

  • FastAPI
  • Redis
  • MySQL
  • Docker

Getting Started

Prerequisites

Before running, make sure you have Docker installed on your system.

Installation

  1. Clone the repo
    git clone https://github.com/seymaozler/card-application.git
  2. Create a virtual environment and activate it
    python -m venv venv
    venv\Scripts\activate
    
  3. Create a .env file based on .env.example and configure your environment variables:
    copy env.example .env
  4. Install requirements
    pip install -r requirements.txt
  5. Build the Docker containers:
  docker-compose build
  1. Start the Docker containers:
  docker-compose up -d

Endpoint Examples

Create User

create-user

After the user is created, a card with the label "SYSTEM CARD" is assigned to the user.

ilk-kart-listesi

Login User

login-user

Create Card

create-card

List Cards

list-cards

Update Card

update-card

Delete Card

delete-card

Add Transaction

add-transactions

Transaction Details

transaction-details

Get Transactions by Keyword

searc-transaction