Coder Social home page Coder Social logo

yjajkiew / projet-ei5 Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 27.59 MB

REST Server NodeJS, written with Baptiste Gauduchon, designed for a project in my last year of engineering school

License: Apache License 2.0

Arduino 0.95% C 0.95% Objective-C 4.43% JavaScript 33.74% CSS 59.93%

projet-ei5's Introduction

Node.JS REST server - Arduino

1 - Objectives :

  • Code the Arduino to work as needed.
  • Build the REST server to interface with the Arduino board with Ethernet Shield.
  • It must implement defined interfaces for each sides : Client & Arduino.
  • Create client (iOS & JQuery) to work with the server

2 - What it does :

  1. The server handles requests from the client, from URL or POST data ;
  2. It firstly checks those requests and builds the appropriate JSON object ;
  3. It secondly sends those JSON objects trought TCP to Arduino, and waits for the answer (JSON object) ;
  4. It finally sends back the answer to the client.

=> The client use the provided API to interact with the Arduino

3 - How it Works :

We've choosen to separate the server's functionnalities in 3 different 'Layers' :

  • web.js : handle web request ;
  • metier.js (formaly 'service.js') : build JSON from request ;
  • dao.js : Arduino registration & communication ;

The interfaces :

  1. Interface between REST Server / Arduino :

To Document

  1. Interface between REST Server / Client Server (public API):
  • The REST server receive request by URL or POST, like this:
    • http://ip:port/server-restServer/arduinos
    • http://ip:port/server-restServer/arduinos/cmd_id/arduino_ip/ (POST, sending JSON in body)

4 - Authors

Written by Baptiste Gauduchon and Yann Jajkiewicz, designed for a project in our last year of engineering school.

ISTIA Ei5 AGI 2013-2014

projet-ei5's People

Contributors

bgauduch avatar yjajkiew avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

projet-ei5's Issues

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.