Giter Site home page Giter Site logo

egen-be-challenge's Introduction

Egen Coding Challenge - Level 2

Problem Statement

The goal of this exercise is to build a system that works like an IoT platform โ€“ in this case, a personal weight

tracker. This system is responsible for,

  • Consuming data sent from different sensors (emulators)

  • Storing the received data in MongoDB

  • Running the data through different rules to make basic predictions

Dependencies : [Java 7] (http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html "JDK 7") | [Maven] (https://maven.apache.org/download.cgi "Maven Build") | [Mongo DB] (https://docs.mongodb.com/ "Mongo DB") | [Morphia Api] (http://mongodb.github.io/morphia/ "Morphia Api") | [Easy Rules] (http://www.easyrules.org/ "Easy Rules") | [Sensor-Emulator] (https://github.com/egen/sensor-emulator "Sensor-Emulator")

Steps to Run

  1. Compile Project and generate jar
mvn clean package
  1. Run Project
java -jar -Dbase.value=<base_weight> target/egen-be-challenge-0.0.1-SNAPSHOT.jar

Enter value for base_weight. [Example- -Dbase.value=150]

  1. Test Project
mvn test

OR

  1. Shell Script to compile and run the project [for unix based platform] -
./run-all.sh <base_weight>

Enter value for base_weight.

APIs Exposed

Metrics

  • Stores the data that comes from sensor
  1. Create
POST Request => http://localhost:8080/metrics/create/
  1. Read
GET Request => http://localhost:8080/metrics/read/
  1. Read by Range
GET Request => http://localhost:8080/metrics/readRange/{startTime}/{endTime}

Alerts

  • Stores the alerts that were created by the rules
  1. Read
GET Request => http://localhost:8080/alerts/read/
  1. Read by Range
GET Request => http://localhost:8080/alerts/readRange/{startTime}/{endTime}

License

VP

egen-be-challenge's People

Contributors

parikhv15 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.