Giter VIP home page Giter VIP logo

andresz74 / license-validator-service Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 17 KB

License Validator is a simple Node.js application built with Express.js. It provides an API endpoint to validate license keys against a predefined list of valid licenses. This project is useful for software that requires license key validation.

Home Page: https://license-validator-service.vercel.app

License: MIT License

JavaScript 100.00%

license-validator-service's Introduction

license-validator-service


License Validator

About

License Validator is a simple Node.js application built with Express.js. It provides an API endpoint to validate license keys against a predefined list of valid licenses. This project is useful for software that requires license key validation.

Features

  • Validate license keys via an API endpoint.
  • Easy integration with existing systems.
  • Simple and straightforward setup.

Getting Started

Prerequisites

  • Node.js
  • npm (Node Package Manager)

Installation

  1. Clone the Repository

    git clone https://github.com/andresz74/license-validator-main.git
    cd license-validator-main
  2. Install Dependencies

    npm install
  3. Set Up License Keys

    • Create a licenses.json file in the root directory.
    • Add an array of valid license keys. Example:
      ["key1", "key2", "key3"]

Running the Application

  1. Start the Server

    npm start

    The server will start on http://localhost:3000.

  2. Access the Endpoint

    • Validate a license key by navigating to http://localhost:3000/validate-license?key=your_license_key.

API Reference

Validate License Endpoint

  • URL

    /validate-license

  • Method:

    GET

  • URL Params

    Required:

    key=[string]

  • Success Response:

    • Code: 200
      Content: OK
  • Error Response:

    • Code: 401 UNAUTHORIZED
      Content: KO

Contributing

Contributions to the License Validator project are welcome!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE file for more information.

Contact

Andres Zenteno - [email protected]

Project Link: https://github.com/andresz74/license-validator-main

license-validator-service's People

Contributors

andresz74 avatar

Watchers

 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.