3.0.0 • Published 6 years ago

aim-server v3.0.0

Weekly downloads
4
License
-
Repository
-
Last release
6 years ago

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"
    }
}

Architecture

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-server
node dms

or

node dms
mklink /D aim-server c:\aim\aim-server
cd dms

create 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();
3.0.0

6 years ago

1.0.9

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago