Skip to content

A simple credit card validation service enhanced with Luhn's algorithm

Notifications You must be signed in to change notification settings

teniolafatunmbi/ccv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple credit card validation service enhanced with Luhn's algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages