Implementation of the ImportSource interface, described in TimeSeriesDataCapture
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 |
---|---|---|
DEBUG | * | Node debugging. Defines what components produce logging. Usually set to * |
PORT | 443 | Notionally, this variable is set to 443, but it simply exists as a placeholder for heroku. When running locally use 8000 |
DATABASE_HOSTNAME | DATABASE HOSTNAME | MongoDB database hostname (ds34237452745.mlab.com) |
DATABASE_PORT | DATABASE PORT | MongoDB database port number |
DATABASE_NAME | DATABASE NAME | MongoDB database name |
DATABASE_USERNAME | DATABASE USERNAME | MongoDB database user username |
DATABASE_PASSWORD | DATABASE PASSWORD | MongoDB database user password |
DATA_FILE_NAME | DATA FILE NAME | File name which the time series data is located within (OPTIONAL) |
API_SCHEME | API SCHEME | Scheme for api (either http or https) |
API_DOMAIN | API DOMAIN | Domain for api |
API_PORT | API PORT | Port for api |
Database Database URL, Database Username, Database Password and Database Name can be all found within the mLab dashboard
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.