GithubHelp home page GithubHelp logo

keygen-sh / example-node-machine-activation Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 4.0 15 KB

An example implementation of a typical machine activation flow using Keygen

Home Page: https://keygen.sh

License: MIT License

JavaScript 100.00%
code-sample platform-example software-licensing license-keys licensing node-locked license-activation

example-node-machine-activation's Introduction

Example Machine Activation

This is an example of a typical machine activation flow. You may of course choose to implement a different flow if required - this only serves as an example implementation.

Running the example

First up, configure a few environment variables:

# Your Keygen account ID. Find yours at https://app.keygen.sh/settings.
export KEYGEN_ACCOUNT_ID="YOUR_KEYGEN_ACCOUNT_ID"

You can either run each line above within your terminal session before starting the app, or you can add the above contents to your ~/.bashrc file and then run source ~/.bashrc after saving the file.

Next, install dependencies with yarn:

yarn

Activating/deactivating a machine

To perform a machine activation or a deactivation, run the script and supply a valid license key:

yarn start

If the current machine has already been activated, you will be prompted to deactivate it.

To use demo credentials, you can run the following:

KEYGEN_ACCOUNT_ID=demo yarn start

Enter C1B6DE-39A6E3-DE1529-8559A0-4AF593-V3 when prompted.

Questions?

Reach out at [email protected] if you have any questions or concerns!

example-node-machine-activation's People

Contributors

ezekg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

example-node-machine-activation's Issues

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.