goipay

module
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2025 License: MIT

README

Logo

Build Status Version Docker Pulls License

Description

Note: The project is in development. This is not a release version.
As for now, only XMR invoices are implemented.

A lightweight crypto payment processor microservice, written in Golang, designed for creating and processing cryptocurrency invoices via gRPC.

Getting Started

Prerequisites

  • Go ≥ 1.22
  • PostgreSQL ≥ 12

Installation

Docker
  • Clone the repo
    git clone https://github.com/goipay/goipay.git
    
  • Inside the root dir create and populate .env file on the base of .env.example file
    SERVER_HOST=0.0.0.0
    SERVER_PORT=3000
    
    SERVER_TLS_MODE=tls
    SERVER_TLS_CA=/app/cert/server/ca.crt
    SERVER_TLS_CERT=/app/cert/server/server.crt
    SERVER_TLS_KEY=/app/cert/server/server.key
    
    # As for now, only PostgreSQL is supported
    DATABASE_HOST=db
    DATABASE_PORT=5432
    DATABASE_USER=postgres
    DATABASE_PASS=postgres
    DATABASE_NAME=goipay_db
    
    XMR_DAEMON_URL=http://node.monerodevs.org:38089
    XMR_DAEMON_USER=
    XMR_DAEMON_PASS=
    
  • Inside the root dir you can find an example docker-compose.yml file. For testing purposes can be run without editing.
    docker compose up
    

Usage

Use cases

GoiPay is designed as a microservice that can be integrated into larger projects. If you need a simple, lightweight solution for just generating and processing crypto invoices, GoiPay is the perfect choice.

Directories

Path Synopsis
cmd
internal
app
db
dto
db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL