Skip to content
/ djane Public
forked from sensinov/djane

Context information management for hustle-free data sharing

Notifications You must be signed in to change notification settings

Alahel/djane

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

djane

Open source implementation of ETSI ISG CIM standard known as NGSI-LD. An information model, representation format and open API intended to make it easier for end-users, IoT devices, open data sources and 3rd-party applications to exchange information.

Prerequisites

Install dependencies

Before starting the project, you have to install the node dependencies. To do so, run:

npm install 

Play the migrations

At this step, you will create indexes on collections before starting the server. Before you run the following command, you have to start mongo service and create a database. As described in config file (/config/config.js), we start locally a mongo service and we create 'ngsi_ld_bd' database.

npm run migrate

NGSIL-LD server

To start server, run:

npm start

A server will start locally listenning on port 3000. The port number is configured in config file (/config/config.js).

First call

To test that you have correctly installed the server, you can run your first query

curl "http://localhost:3000/subscriptions" -H 'Accept: application/ld+json'

This will return an empty set, since nothing has been created yet. Note that you must specify the accept header, otherwise you get an error. Look here for more information about the API.

About

Context information management for hustle-free data sharing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%