Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 611 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 611 Bytes

Gin-LSAT Proxy

An implementation of lsat-middleware middleware using Gin to demonstrate serving of static files and creating a paywall for paid resources.

Steps to run:-

  1. Clone the repo.
  2. In the repo folder, run the command:-
    go get .
  3. Create .env file (refer .env_example) and configure LND_ADDRESS and MACAROON_HEX for LND client or LNURL_ADDRESS for LNURL client, LN_CLIENT_TYPE (out of LND, LNURL), ROOT_KEY (for minting macaroons) and PORT.
  4. To start the server, run:-
    go run .