GithubHelp home page GithubHelp logo

iuno-tdm / juicemachineservice Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 1.36 MB

Implementation of the machine api and logic behind.

License: GNU General Public License v3.0

JavaScript 99.40% Dockerfile 0.60%

juicemachineservice's People

Watchers

 avatar  avatar  avatar  avatar

juicemachineservice's Issues

Disable default nginx config

Can only be done as sudo user and I'm none.

sudo mv /etc/nginx/sites-enabled/default /etc/nginx/sites-enabled/default.disabled

Patch Verwaltung in Patch Files einbauen

Das "insert" auf die Patch Tabelle sollte innerhalb der Patch File erfolgen und nicht in PatchDBTool. Grund: Beim Starten der TDM Docker Image sollten die Patches automatische eingespielt werden

REST Route for recipes

Implement a REST Route to retrieve recipes.
At first no database ist connected behind the rest route. So alle recipes retrieved are dummy-data

Define an interface for possible ingredients

When a machine is beeing configured we need to know what ingredients are possible (known on the server). We need a REST Interface to retrieve a list of possible ingredients. The response JSON should represent the tree-like structure from the database spec.

Socket.IO Server

Implement the Socket.IO Interface for machines to connect to. Socket.IO is used to push several information from the server to the client machines.

  • Send offers and Payment Requests
  • Send licence updats (RAU)

Implement Route to retrieve single recipe and user images

Recipe and user data also contain a URI to the user and recipe image. These URIs need to return those images.

Images are stored on the market place core. The JuiceMachineService should call the core for those images and return them to the client.

At a later point those thinks should also be cached.

Refactor Reports interface

The reports interfaces are not REST like and do need some refactoring.

  • merge my_reports and reports.
  • remove duplicated routes
  • rename routes for better readability
  • one route should have only one business logic

Setup basic node.js structure

Use the express.js framework to setup the basic structure.
Remove all view/frontend components as they will not be needed.

Socket.io authentication fails

The authentication fails because the token is only reciecved once at startup.

  • Fails if Auth Server is not reachable to this time
  • Will fail as soon as the token expires

Unstartup JMS

Application is now started within docker. We have to unstartup the old pm2 setup.

This can only be done as sudo user:

pm2 unstartup

// Do what every the cmd output tells you

REST Route: /users

We need a route to get user information from the server. This is used to show detail information about the recipe author on the machine frontend

Add caching functionality

The MachineService should not call the Core every time a client requests data. We should implement some caching functionality.

Some Dashboard Reports are not working

The Reports: MostUSedComponents, Technology per Day time and Revenue per Day time are not working.

Browser Error: Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Refactor Config

Merge the two config files into a single one. Add some logic for private config files. Rethink the complete configuration process.

Connect the MarketPlaceCore

Connect all routes to the market place core.

  • Retrieve technology and other data from the core.
  • Reformat the data to match the recipe interface

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.