3.0.0 • Published 6 years ago
aim-server v3.0.0
AIM Platform Server
{
"client_id": "5ebabb5e-0a5b-4c87-a970-1919a4680fb1",
"api": "lfv_Verkeerslichten_Verkeersbuis_api.json",
"data": "lfv_Verkeerslichten_Verkeersbuis_data.json",
"aud": 12345,
"src1": [
{ "source": "sites/rws/lfv/root/Verkeerslichten.html", "dest": "root/Verkeerslichten.html" }
],
"require1": {
"lfv_Verkeerslichten": "sites/rws/lfv/Verkeerslichten.js"
},
"http": {
"port": 8444,
"key": "cert/192.168.0.135.key",
"cert": "cert/192.168.0.135.crt"
},
"230": {
"url":"wss://aliconnect.nl:444"
}
}
Introduction
Security is based on tokens that contain security cridentials. These tokens are based on the JSON web token. A detail decription can be found here
Setup
create following folder structure within your project folder:
- project
- css
- img
- js
- root
- api
Press [Windows]+[R] en type cmd.
cd project
npm init
npm i aim-servernode dmsor
node dmsmklink /D aim-server c:\aim\aim-servercd dmscreate root/index.html
<html>if jou want to build an PHP api on IIS
create root/api/index.php
<?php
require_once ($_SERVER[DOCUMENT_ROOT]."/../node_modules/aim-server/root/api/aim_client.php");
class aim extends aim_client {
}
$aim = new aim();