/license-manager

Manage application licenses with versions

Primary LanguageGoMIT LicenseMIT

License Manager

CircleCI Go Report Card

Manage application licenses with versions

Purpose of Repo

This repo is a playground for apply and learn news from Golang

Currently it is used:

Dependences

license-manager expects a PostgreSQL instance

Environment Variables

  • DATABASE_DSN
  • PORT

Build

go build main.go

Examples

Add license

curl -i -H "Content-Type:application/json" -X POST localhost:3000/license -d '{"id": "abcde12345", "version" : "v2", "info": {"user" : "blah", "company" : "xxyyxx"}}'

Get license

curl -i localhost:3000/license/abcde12345/versions/v2