A simple service for validate credit cards enhanced with Luhn's algorithm.
- Python v3.9+
- Pip v20+
- Unix-based OS.
- Clone this Github Repo to your computer.
git clone https://github.com/teniolafatunmbi/cvv.git
-
Install Python, if you don't have it installed on your PC. An installation comes with Pip.
-
Create a virtual environment for the project.
python3 -m venv .venv
- Activate the virtual environment.
source .venv/bin/activate
- Install project dependencies.
pip install -r requirements.txt
-
Run
python main.py
to start the app. -
Visit
http://localhost:7001
to verify that the server is running.
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
.