Skip to content

kamalkhnl/licensing_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Licensing Service

Introduction

This repository contains a licensing service developed as a side project while working at Paracosma. The service includes an admin panel for generating serial keys and a user interface for assigning and checking the validity of these keys.

Features

  • Admin panel for generating 16-digit serial keys
  • User interface for assigning serial keys to devices
  • Check the validity of serial keys
  • Track the usage and activation of serial keys

Installation

  1. Clone the repository:

    git clone https://github.com/kamalkhnl/licensing_service.git
    cd licensing_service
  2. Create and activate a virtual environment:

    python3 -m venv .venv
    source .venv/bin/activate
  3. Install the required dependencies:

    pip install -r requirements.txt
  4. Apply the migrations:

    python manage.py migrate
  5. Create a superuser for the admin panel:

    python manage.py createsuperuser
  6. Run the development server:

    python manage.py runserver

Usage

Admin Panel

  1. Access the admin panel at http://127.0.0.1:8000/admin/.
  2. Log in with the superuser credentials.
  3. Generate serial keys using the "Serial Keys" section.

API Endpoints

  • Assign Key: POST /keys/assign_key/

    • Request body:
      {
          "key": "YOUR_SERIAL_KEY",
          "device_id": "YOUR_DEVICE_ID"
      }
    • Response:
      {
          "status": "success",
          "message": "Key activated"
      }
  • Check Key: POST /keys/check_key/

    • Request body:
      {
          "key": "YOUR_SERIAL_KEY",
          "device_id": "YOUR_DEVICE_ID"
      }
    • Response:
      {
          "status": "success",
          "message": "Key activated"
      }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages