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
.envfile (refer.env_example) and configureLND_ADDRESSandMACAROON_HEXfor LND client orLNURL_ADDRESSfor LNURL client,LN_CLIENT_TYPE(out of LND, LNURL),ROOT_KEY(for minting macaroons) andPORT. - To start the server, run:-
go run .