-sh/example-react-license-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an example React app for validating a . It contains a single React component which handles a input from a user and then validates the key using 's software licensing API.

This example application is not 100% production-ready and only serves as an example implementation, but it should get you 90% of the way there. You may need to also add additional logging, error handling, or license validation persistence.

image

First up, configure a few environment variables:

# Your  account ID
export _ACCOUNT_ID="YOUR__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

Then start the app:

yarn start

Visit the following url: http://localhost:8888. Input a and it will be validated against 's licensing API.

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

About

An example implementation of validating a from within a React component.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published