Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.11 KB

README.md

File metadata and controls

40 lines (31 loc) · 1.11 KB

A simple credit card validator

A simple service for validate credit cards enhanced with Luhn's algorithm.

Requirements

  • Python v3.9+
  • Pip v20+
  • Unix-based OS.

Setup

  1. Clone this Github Repo to your computer.
    git clone https://github.com/teniolafatunmbi/cvv.git
  1. Install Python, if you don't have it installed on your PC. An installation comes with Pip.

  2. Create a virtual environment for the project.

    python3 -m venv .venv 
  1. Activate the virtual environment.
    source .venv/bin/activate
  1. Install project dependencies.
    pip install -r requirements.txt
  1. Run python main.py to start the app.

  2. Visit http://localhost:7001 to verify that the server is running.

Usage

Ensure you have an internet connection to load the minimal styles on the frontend from Tailwind CDN.

  • The API documentation is at http://localhost:7001/docs
  • The validate endpoint is at http://localhost:7001/api/v1/validate.
  • The UI for credit card validation is at http://localhost:7001/app.