goipay

module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT

README

GoiPay

GoiPay

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 ≥ 16
Installation
Docker
  • Clone the repo
      https://github.com/chekist32/goipay.git
    
  • Inside the root dir create and populate .env file on the base of .env.example file
      # Can be either 'prod' or 'dev'.
      # In 'dev' mode, a reflection server is established.
      MODE=dev
    
      SERVER_HOST=localhost
      SERVER_PORT=3000
    
      # As for now, only PostgreSQL is supported
      DATABASE_HOST=localhost
      DATABASE_PORT=5432
      DATABASE_USER=postgres
      DATABASE_PASS=postgres
      DATABASE_NAME=crypto_gateway_test
    
      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
    

Directories

Path Synopsis
cmd
internal
app
db
dto
test

Jump to

Keyboard shortcuts

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