Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xataru/cardcheck
Simple validator for credit card number and expiration date
https://github.com/0xataru/cardcheck
docker docker-compose fintech golang validator
Last synced: 7 days ago
JSON representation
Simple validator for credit card number and expiration date
- Host: GitHub
- URL: https://github.com/0xataru/cardcheck
- Owner: 0xataru
- Created: 2024-03-22T13:32:12.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-28T10:59:26.000Z (10 months ago)
- Last Synced: 2025-01-02T21:32:33.997Z (15 days ago)
- Topics: docker, docker-compose, fintech, golang, validator
- Language: Go
- Homepage:
- Size: 36.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cardcheck API
[![Go Report Card](https://goreportcard.com/badge/github.com/markraiter/cardcheck)](https://goreportcard.com/report/github.com/markraiter/cardcheck)
This is an API for validating credit cards.
## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
### Prerequisites
- Go version 1.22.0
- Docker (optional)### Installing
A step by step series of examples that tell you how to get a development environment running.
1. Clone the repository
2. Install the dependencies with `go mod download`
3. Create `.env` file and copy values from `.env_example`
4. Follow the instructions to install [Taskfile](https://taskfile.dev/ru-ru/installation/) utility
5. Run the server with `task run`## Running the tests
1. Run the tests with `task test`
2. Also you can proceed with the [OpenAPI](https://swagger.io/) docs by link `localhost:8888/swagger`## Deployment
You can also run the service in Docker container with `task run-container`
## Built With
- [Go](https://golang.org/) - The programming language used.
- [Docker](https://www.docker.com/) - Used for containerization.