Giter Club home page Giter Club logo

license-server's Introduction

🔑License Server🔑

A simple application for license key verification written in Golang.

Deployment

  • Requirement
    • Mysql / Sqlite3 / PostgreSQL
  • Deploy
    • setup your db,webserver(i.e: nginx)
    • use repo etc/license-server.service file and change your needs
    • copy etc/license-server.service file to /etc/systemd/system/license-server.service or your os systemd service config directory
    • Now enable service and start
       systemctl enable license-server.service
       systemctl start license-server.service
       systemctl status license-server.service
    • Stop the server
       systemctl stop license-server.service
    • use repo etc/license-server.conf file and change your needs
    • copy etc/license-server.conf file to /etc/nginx/site-available or your os web server vhost config directory
    • now restart webserver service nginx restart

Development

  • Requirement

  • Clone the repo

    git clone https://github.com/hrshadhin/license-server.git
    cd license-server
    
  • copy .env.example file to .env and change configuration according to your need.

  • Install dependency dep ensure

  • Run go run main.go

  • Test go test -v

  • Build & Run

    make 
    ./bin/license-server
    
  • ⚡N.B.⚡ By default server run on 127.0.0.1:8000 you can specify the host and port also.

     ./bin/license-server -host=0.0.0.0 -port=8080
     ./bin/license-server -host=0.0.0.0
     ./bin/license-server -port=8080
    

Cross Platform Build

  • Cross compilation is hard, and docker is help us in that way! Install docker and pull docker image docker pull karalabe/xgo-latest and install a go package go get github.com/karalabe/xgo
  • For build most of the platforms binary use
    xgo github.com/hrshadhin/license-server
    
  • Or specific platform
    xgo --targets=linux/amd64 github.com/hrshadhin/license-server 
    
  • After build is finished you should have all platforms binary in your current directory.
  • More build details find here

API Docs

Check docs directory

🔭 Need more help?

Send an e-mail to H.R. Shadhin via [email protected]

License

MIT

license-server's People

Contributors

hrshadhin avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.