Skip to content

emanuelhristea/LicenseServer

 
 

Repository files navigation

Go Report Card CodeFactor Docker

Installation

$ git clone https://github.com/emanuelhristea/lime.git

Setup

  1. Modify config for DB in config/config.go
  2. Update parameters for privateKey, publicKey in file license/license.go To generate new key pair use command go run main.go pkey

Run server

$ go run main.go server 

Available Commands:

  • healthcheck : Check healthcheck
  • help : Help about any command
  • server : Start license server
  • pkey : Generating key pair

Admin console

Link for admin console http://localhost:8080/admin/ default login - admin, password - admin

API list

  • GET /ping : Health server
  • POST /api/key : Generate new license
  • GET /api/subscriptions : Get subscriptions and licenses by email and MAC address
  • PATCH /api/key/:customer_id : Update license
  • POST /api/verify : Check status license
  • DELETE /api/key : Release license key.

TODO

  • Generating license
  • Verification license
  • Create and install license on the client
  • Command-line utility for generating key pair
  • Integration with Stripe
  • Example client
  • Admin console
  • Support MAC address check
  • Support country check

About

🍋 Very light license-key server

Resources

License

Stars

Watchers

Forks

Languages

  • Go 64.2%
  • HTML 22.0%
  • JavaScript 8.4%
  • Makefile 2.2%
  • CSS 2.1%
  • Dockerfile 1.1%