https://github.com/fiware/tutorials.accessing-context
:blue_book: FIWARE 105: Accessing Context Programmatically
https://github.com/fiware/tutorials.accessing-context
contextual-data fiware fiware-orion ngsi node-js-express tutorial
Last synced: 4 months ago
JSON representation
:blue_book: FIWARE 105: Accessing Context Programmatically
- Host: GitHub
- URL: https://github.com/fiware/tutorials.accessing-context
- Owner: FIWARE
- License: mit
- Created: 2018-04-30T10:46:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-09-10T08:04:45.000Z (4 months ago)
- Last Synced: 2025-09-10T11:50:24.050Z (4 months ago)
- Topics: contextual-data, fiware, fiware-orion, ngsi, node-js-express, tutorial
- Language: Shell
- Homepage: https://www.fiware.org/developers/
- Size: 606 KB
- Stars: 4
- Watchers: 8
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.fiware.org/developers)
[](https://github.com/FIWARE/catalogue/blob/master/core/README.md)
[](https://opensource.org/licenses/MIT)
[](https://stackoverflow.com/questions/tagged/fiware)
This tutorial teaches FIWARE users how to alter the context programmatically. The tutorial builds on the entities
created in the previous [stock management example](https://github.com/FIWARE/tutorials.Context-Providers/) and enables a
user understand how to write code in an [NGSI-v2](https://fiware.github.io/specifications/OpenAPI/ngsiv2) capable
[Node.js](https://nodejs.org/) [Express](https://expressjs.com/) application in order to retrieve and alter context
data. This removes the need to use the command-line to invoke cUrl commands.
The tutorial is mainly concerned with discussing code written in Node.js, however some of the results can be checked by
making [cUrl](https://ec.haxx.se/) commands.
# Start-Up
**NGSI-v2** offers JSON based interoperability used in individual Smart Systems. To run this tutorial with **NGSI-v2**, use the `NGSI-v2` branch.
```console
git clone https://github.com/FIWARE/tutorials.Accessing-Context.git
cd tutorials.Accessing-Context
git checkout NGSI-v2
./services create
./services start
```
| [](https://fiware-ges.github.io/orion/api/v2/stable/) | :books: [Documentation](https://github.com/FIWARE/tutorials.Accessing-Context/tree/NGSI-v2) |
| --- | --- |
---
## License
[MIT](LICENSE) © 2018-2024 FIWARE Foundation e.V.