Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.3 KB

README.md

File metadata and controls

53 lines (34 loc) · 1.3 KB

Mock server for Sensors data

This mock server allows mocking sensors data (temperature [7 - 23°C] and humidity [50 - 100%]) depending on season and day hours. 30-days time series are produced hourly. It might be updated in future for more variable and parameters.

Server runs on port 3001 by default.

Routes are :

/info
/temperature
/humidity

Once installed on local machine, API is reachable at http://localhost:3001/humidity .

Installing

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Setup the project :

npm install

Compiles and minifies for production :

npm run build

Run a local host :

npm start

By default, the application is deployed on localhost:3000 .

Built With

  • ExpressJS - A fast, unopinionated, minimalist web framework for Node.js
  • Node.js - An open-source, cross-platform, JavaScript runtime environment
  • Moment.jS - Parse, validate, manipulate, and display dates and times in JavaScript

Authors

  • Gilles-Antoine Nys - Development - Twitter

License

This project is licensed under the Apache License - see the LICENSE.md file for details.