Git Product home page Git Product logo

overqwil's Introduction

OVERQWIL

A API to record values from a gateway

Features

  • create api users
  • recive values from gateway

Tech

This app uses these stack:

  • [Express] - A minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.
  • [MongoDB] - A source-available cross-platform document-oriented database program.
  • [Node.JS] - An open-source, cross-platform, back-end JavaScript runtime environment that runs on the V8 engine and executes JavaScript code outside a web browser.
  • [JWT] - JSON Web Token is a proposed Internet standard for creating data with optional signature and/or optional encryption whose payload holds JSON that asserts some number of claims.

Installation

git clone https://github.com/mgrb/overqwil.git
cd overqwil
docker-compose up

Using API

Register a user

PORT: base_url/auth/register Content-type: application/json BODY TEMPLATE:

{
	"name": "<<User Name>>",
	"login": "<<user_login>>",
	"password": "<<secret>>"
}

Recover a active token

PORT: base_url/auth/login Content-type: application/json BODY TEMPLATE:

{
	"login": "<<user_login>>",
	"password": "<<secret>>"
}

Possible response

{
    "user": {  }, 
	"token": "some_jwt_token"
}

Input a record from gateway

PORT: base_url/record Content-type: application/json BODY TEMPLATE:

{
   "id": 31,
   "node": "00-80-e1-15-00-21-d4-b1",
   "time_utc": "2022-02-22 12:13:17",
   "rssi": -61,
   "snr": 10,
   "distance_01": 5.365,
   "distance_02": 5.365,
   "distance_03": 5.364,
   "distance_04": 5.367,
   "distance_05": 5.361,
   "distance_06": 5.368,
   "distance_07": 5.365,
   "distance_08": 5.367,
   "distance_09": 5.365,
   "distance_10": 5.367,
   "distance_11": 5.368,
   "distance_12": 5.363,
   "distance_13": 5.362,
   "distance_14": 5.365,
   "distance_15": 5.365,
   "distance_16": 5.369,
   "distance_17": 5.366,
   "distance_18": 5.365,
   "distance_19": 5.366,
   "distance_20": 5.365,
   "distance_21": 5.365,
   "distance_22": 5.367,
   "distance_23": 5.367,
   "distance_24": 5.364,
   "distance_25": 5.363,
   "distance_26": 5.363
 }

overqwil's People

Contributors

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