t-bonatti / license-manager

Manage application licenses with versions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Manage application licenses with versions

License:MIT License


Languages

Language:Go 98.8%Language:Makefile 1.2%