GithubHelp home page GithubHelp logo

server_dogdoor's Introduction

This is just a simple Express Server

Getting it running

  • Your first step is to clone the repo, and then npm install the dependencies

  • To actually get the server running you will need to type node index.js in your terminal

  • You should be able to visit http://localhost:3000 in your browser

Modifying the example

  • The key files in this repo are
    • index.js - If you wanted to connect a database start here
    • routes.js - If you wanted to add more routes to your server you can add them here

Interacting with the robot

To interact with the robot you will need to use something like a browser, curl, or a headless browser like and Amazon Echo to dictate what URL to hit. The pattern will follow like this curl http://127.0.0.1:3000/api/robots/omnius/commands/on

Theory Behind the API

This is a simple server that will interact with configured devices with a firmata protocol already installed. This spins up a server that has an inception style api hidden runninginside of the parent API this is because directly interacting with the Cylon API appears to not behave right.

server_dogdoor's People

Contributors

sarahneely avatar

Watchers

 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.