An implementation of lsat-middleware middleware using Gin to demonstrate serving of static files and creating a paywall for paid resources.
- Clone the repo.
- In the repo folder, run the command:-
go get .
- Create
.env
file (refer.env_example
) and configureLND_ADDRESS
andMACAROON_HEX
for LND client orLNURL_ADDRESS
for LNURL client,LN_CLIENT_TYPE
(out of LND, LNURL),ROOT_KEY
(for minting macaroons) andPORT
. - To start the server, run:-
go run .