Giter Site home page Giter Site logo

micro-bit-webapp's Introduction

micro:bits - webapp

This is a readme for setting up the webapp associated to a project regarding micro:bit sensors. Some features are:

  • Input measurements to get a copy of a real life room.
  • Place sensors in a "room" for future reference where the user put the sensor.
  • Show data from all sensor associated to that room or just an individual sensor.

Screenshot of a microbit example

Language

  • HTML
  • Javascript
  • Node.js
  • Express

Installation

Start by checking if node and npm is installed.

node -v
npm -v

If node isn't installed, use this link. If just npm is missing it can be installed with:

[sudo] npm install npm -g

With that out of the way you have to install the modules from the package.json.

npm install

The webapp utilizes a database to push and pull data from. That has to be configured. Go to the webapp root directory and create the following structure db/config.json. Paste these line in config.json.

{
    "host":     "localhost", //Change to something like remotemysql.com if you are using a non local database.
    "port":     "8080", //Change to the desired port if you are using a non local database.
    "user":     "user", //Change to the username for the database.
    "password": "pass", //Change to the password for the database.
    "database": "microbits", //Change to the name you gave the database.
    "multipleStatements": true //Dont change.
}

With all of this out of the way you are now ready to go!

Usage

To start the server use:

node index.js

Or if nodemon is installed:

npm start

micro-bit-webapp's People

Contributors

martinledel avatar

Watchers

 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.