License Server Overview
This project provides a web-based license management system for generating, validating, and deleting license keys. The setup includes a REST API powered by Node.js and Express.js, a MySQL database for storing license keys, and a simple web interface for user interaction. Authentication is implemented to secure sensitive operations such as creating and deleting license keys.
Key Features
How to Set Up the License Server
Technologies Used
Benefits This license server provides a centralized and secure solution for managing software licenses. The web interface makes it user-friendly, while the REST API ensures scalability and integration with other systems.
This project provides a web-based license management system for generating, validating, and deleting license keys. The setup includes a REST API powered by Node.js and Express.js, a MySQL database for storing license keys, and a simple web interface for user interaction. Authentication is implemented to secure sensitive operations such as creating and deleting license keys.
Key Features
- License Creation
Authenticated users can create unique license keys through a secure REST endpoint. - License Validation
Check the validity of a license key using a simple API call. - License Deletion
Authenticated users can remove an existing license key from the system. - Web Interface
A user-friendly web interface allows interaction with the license management system for creating, deleting, and checking licenses. - Secure Authentication
All administrative actions require a username and password to ensure security. - Persistent Storage
License keys are stored securely in a MySQL database.
How to Set Up the License Server
- Prerequisites
- Install Node.js and npm.
- Set up a MySQL database.
- Install required dependencies by running npm install.
- Database Configuration
Create a MySQL database and set up the required licenses table. - Configuration File
Edit the config.json file to include your database and API credentials. - Start the Server
Run the server using node server.js. The application will start on the specified port (e.g., http://localhost:2028). - Access the Web Interface
Navigate to the /public/index.html file through your browser to access the web interface. - API Endpoints
- POST /create-license: Creates a new license key (requires authentication).
- DELETE /delete-license/:key: Deletes an existing license key (requires authentication).
- GET /check-license/:key: Checks if a license key is valid.
Technologies Used
- Backend: Node.js with Express.js.
- Database: MySQL for storing license keys.
- Frontend: HTML, CSS, and JavaScript for the web interface.
- Security: Basic authentication for protected operations.
Benefits This license server provides a centralized and secure solution for managing software licenses. The web interface makes it user-friendly, while the REST API ensures scalability and integration with other systems.