This NetLicensing Demo Application provides a simple way to explore basic NetLicensing functionalities, as well as integration options with real application code. Feel free to use code snippets from this project as a help for NetLicensing integration in your own product.
This project is based on docker-compose. By default, the following containers are started: netlicensing-demo (centos:7 based), nginx. The /var/www/netlicensing-demo
directory is the web root which is mapped to the nginx container.
You can directly edit configuration files from within the repo as they are mapped to the correct locations in containers.
To be able to run NetLicensing Demo you have to meet the following requirements:
Clone repository
$ git clone https://github.com/Labs64/NetLicensing-Demo.git
Copy .env.example
to .env
and modify according to your environment
$ cp .env.example .env
Start environment
$ docker-compose up -d
Build project
$ docker exec netlicensing-demo ./dockerfiles/bin/prj-build.sh
Now you can browse the site at http://localhost:80
$ docker-compose down
To be able to run NetLicensing Demo Application you have to meet the following requirements:
Install Composer using detailed installation instructions here
Install Node.js using detailed installation instructions here
Clone repository
$ git clone https://github.com/Labs64/NetLicensing-Demo.git
Change into the working directory
$ cd NetLicensing-Demo
Copy .env.example
to .env
$ cp .env.example .env
modify keys beginning with NLIC in the .env file with your values:
Install composer dependencies
$ composer install --prefer-dist
An application key can be generated with the command
$ php artisan key:generate
Execute following commands to install other dependencies
$ npm install
$ npm run dev
To start the PHP built-in server
$ php artisan serve --port=8080
or
$ php -S localhost:8080 -t public/
Now you can browse the site at http://localhost:8080