Implementation of the ImportSource interface, described in TimeSeriesDataCapture
see MongoDB Hosting and MongoDB Creation
To build the Import API on heroku simply click the Deploy To Heroku button above
To build browse locally first the API swagger.yaml file must be modified.
Locate the host on Line 10
and change host: <url>
to host: "localhost:8000"
Locate the schemes on Line 16
and change - "https"
to -http
To start server run:
node index.js
Database URL, Database Username, Database Password and Database Name can be all found within the mLab dashboard
For help see MongoDB
Variable | Example | Description |
---|---|---|
DATABASE_URL | DATABASE URL | this is the access url for the MongoDB database. |
DATABASE_USERNAME | DATABASE USERNAME | this is the username for the MongoDB database. |
DATABASE_PASSWORD | DATABASE PASSWORD | this is the password for the MongoDB database. |
DATABASE_NAME | DATABASE NAME | this is the database name |
DEBUG | * |
Node debugging. Defines what components produce logging. Usually set to * |
DISABLE_CLUSTERING | true | set to false to enable running on multiple cores. Currently set to true, because it's not yet tested. |
PORT | 443 | Notionally, this variable is set to 443, but it simply exists as a placeholder for heroku. When running locally use port 8001 |
WEB_CONCURRENCY | 4 | Number of cores to use. |
This project was funded via the Marloes Peeters Research Group and mentored by DigitalLabs@MMU as a DigitalLabs Summer Project. It is the work of Yusof Bandar.