Code Monkey home page Code Monkey logo

planqk-generic-virality-optimization-demo's Introduction

PlanQK Webapp Demo Template

Overview

This repository contains a template to add a webapp as a demo for an usecase to PlanQK. It includes the web application (webapp) and a PlanQK proxy. You find more information about the demo-deployment in the PlanQK documentation.

Quick Start

To start the application locally, execute ./build-docker.sh. Ensure you have set the necessary environment variables, for instance, by using an .env file. You can then access the project at http://localhost:8085.

Components

PlanQK Proxy

The PlanQK proxy is a straightforward intermediary that forwards requests to the PlanQK service. It utilizes the following environment variables, which can be generated by a PlanQK application on the PlanQK Platform and set in the settings of the use-case demonstrator:

CONSUMER_KEY=
CONSUMER_SECRET=
SERVICE_ENDPOINT=
DEMO_DATA={"data":{}, "params:{}"}
PORT=8080

The proxy facilitates the following REST calls:

  • POST /planqk/create - Initiates a new run of the defined service on the PlanQK platform. The request body should contain a JSON as defined in the PlanQK Service. The response includes the ID of the created instance.
  • GET /planqk/status/{id} - Retrieves the status of the run with the specified ID. This can be polled from the webapp to check if the instance has completed.
  • GET /planqk/result/{id} - Obtains the result of the instance with the specified ID. This can be requested from the webapp once the run has finished.

WebApp

The webapp directory contains the build of the web application (e.g., an Angular or React application). The webapp can communicate with the PlanQK proxy to initiate a new instance of the defined service on the PlanQK platform, poll the status of the instance, and request its result.

planqk-generic-virality-optimization-demo's People

Contributors

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