Git Product home page Git Product logo

p4_back's Introduction

p4_back & front readme

Dashboard of procedures Welcome to my procedures dashboard using Angular, nodejs, mmongoDB

This service will allow you to register, login & see procedures x/y chart by value & timestamp

See usage via postman at the buttom ๐Ÿ‘‡

Installation: Open a shell, pull p4_front and p4_back from git repos run front with npm install then npm start run back w/ nodemon

user_for_tests: email: "[email protected]" password: "[email protected]"

Usage: Dashboard client has 4 url endpoints:

login & register buttons @ http://127.0.0.1:4200

login procces @ http://127.0.0.1:4200/login

register procces @ http://127.0.0.1:4200/register

procedure chart @ http://127.0.0.1:4200/line-chart

Dashboard api has 4 url endpoints:

POST /api/data/add
Post with body as follows:
{'proccedure': str, 'timestamp': Number, 'value': Number}
http://127.0.0.1:5000/api/data/add

GET /api/data/get
http://127.0.0.1:5000/api/data/get

POST /login
http://127.0.0.1:5000/login

POST /register
http://127.0.0.1:5000/register
* password is hushed w/ md5

Get example @ post man: http://127.0.0.1:5000/api/data/get Screen Shot 2021-06-25 at 20 42 25

  • to resolve Forbidden response add the Authorization header with:
  • "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZXN1bHQiOnsiX2lkIjoiNjBkNWRmZDMxM2UyM2I2OTM1MDFjMzQ3IiwibmFtZSI6InJ1YmlAZ21haWwuY29tIiwiZW1haWwiOiJydWJpQGdtYWlsLmNvbSIsInBhc3N3b3JkIjoiNWI5ZDlkYzFjNTg4ZWYyNTNhMThlN2Y4Yzc2NmY0NTciLCJfX3YiOjB9LCJpYXQiOjE2MjQ2NDEwNjJ9.L61lRof6WMZvO9dz3mOvciJORZZUlXQ7ovl_XIRWuHI"

p4_back's People

Contributors

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