This repository hosts 2 demo applications developed in NodeJS
exposing server-side and CLI integration with the HERE REST APIs & Platform Extensions.
Application Name | File | Description |
---|---|---|
Command Line Interface demo application | cli-demo.js |
A CLI application running a sequence of potential transportation scenarios against the HERE REST APIs |
Express server demo application |
express-demo.js |
A grossly simplified Express app showcasing area administration. |
Visit the HERE Developer Portal for more information on the HERE REST APIs & Platform Extensions.
Note: In order to get the sample code to work, you must replace all instances of
YOUR_APP_ID
andYOUR_APP_CODE
within the code and use your own HERE credentials.
You can obtain a set of credentials from the Plans page on developer.here.com.
For more details about Mobility On Demand, visit the HERE Mobility On Demand Toolkit page.
Unless otherwise noted in LICENSE
files for specific files or directories, the LICENSE in the root applies to all content in this repository.
Requires node >= 6.0.0
- Run
npm install
- Replace
YOUR_APP_ID
andYOUR_APP_CODE
placeholder values insrc/config.js
with your own HERE credentials.
- Run
npm run server
to run theExpress
server application - Run
npm run cli-demo
to run theCLI
demo
ℹ️ To disable specific scenarios of the demo, comment out their
then
calls at the bottom ofsrc/cli-demo.js
ℹ️ By default the local database is always cleared when starting the demo. To avoid clearing data, change the third parameter in the call to
db.initialize
tofalse
at the bottom ofsrc/cli-demo.js
Run by issuing an npm run <name-of-script>
command.
Omit <name-of-script>
to get a list of targets.
lint
: lints js code witheslint
build-jsdoc
: builds documentation into the./doc
directorycoverage
: run code coverage analysistest
: run linter and code coverage
The examples use the Custom Integration Test (CIT) environment. Please refer to our API Documentation on how to change from our CIT environment to our Production environment.