Giter VIP home page Giter VIP logo

things-measurements's Introduction

Internet of things measurements

Get started

Prerequisites

  1. Play-1.2.5
  2. MySQL-5.5.25
  3. Maven-3.0.4

Get it to work

  1. Clone this repo.

  2. Add a mysql user.

    # local
    CREATE USER 'four'@'localhost' IDENTIFIED BY 'NZg9TSMM';
    CREATE DATABASE four;
    GRANT ALL ON four.* TO 'four'@'localhost';
    
  3. Get the Play! wagon on the road.

    $ play secret
    $ play deps
    $ play mvn:init
    $ mv pom.xml.bak pom.xml
    $ play mvn:update
    $ play mvn:sources
    $ play run
    
  4. Go to http://localhost:9000/admin.

  5. Endpoints.

    GET		/										Seek life elsewhere
    GET		/locations.xls							Excel export of results
    GET		/locations.json							Lists all locations
    GET		/locations/{slug}.json					Shows a single location
    
    GET		/locations/{slug}/measurements.json		Shows all measurements for a location
    POST	/locations/{slug}/measurements.json		Creates and returns a new measurement for a 
    												location
    
    GET		/admin									Admin area
    
  6. Eclipse and Play.

    From the play directory copy /support/eclipse/org.playframework.playclipse_0.7.0.jar to your Eclipse's /plugin directory. The plugin will give you some content assist, highlighting, the ability to quickly create models, controllers and views and easier debugging.

  7. Eclipse and this project.

    In order to import this project as 'existing project' in Eclipse just run the following command at the project's path:

     $ play eclipsify
    

things-measurements's People

Contributors

broezer avatar jpwesselink avatar

Watchers

 avatar  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.