Skip to content

Implementation of the ImportSource interface, described in TimeSeriesDataCapture

License

Notifications You must be signed in to change notification settings

CMDT/TimeSeriesDataCapture_ImportSource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TimeSeriesDataCapture_ImportSource

Implementation of the ImportSource interface, described in TimeSeriesDataCapture

Deploy

Building

Prerequisites

Deployment

Heroku

To build the Import API on heroku simply click the Deploy To Heroku button above

Localhost

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

Environment Variables

Database

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.

About

Implementation of the ImportSource interface, described in TimeSeriesDataCapture

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published