Giter VIP home page Giter VIP logo

hydra-python-agent-gui's Introduction

Hydra Agent GUI

This is a GUI for the Hydra Ecosystem's Agent. It's divided in two parts: the left side shows the Hydra API as a linked graph and at the right you have a generic console built based on the API Documentation that you can use to query the API. The Frontend was built with React, a middle layer to use the Agent was built with Flask.

Agent GUI Picture

Installing Requirements

It's recommended that you use venv(virtual environment):

apt-get install python3-venv # If not installed
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt

Running Redis Graph

The Agent uses a Redis local server as a caching layer. That said, it's necessary that you run Redis Graph locally:

sudo ./redis_setup.sh # <- Might be necessary to uso sudo

Running the GUI

If you've installed the Requirements and have the proper Redis running you can simply:

python3 app.py

Now open your browser and enjoy at: http://localhost:3000/

Contributing to the GUI

This repository is divided in two parts, the Middle-Layer/Backend with Flask under app.py and the React project under the folder console-frontend.

The Flask Backend is built to communicate with the Python Agent package. It declares five endpoints which are used for this:

  • send-command - Send Commands to Agent and returns the server response
  • /hydra-doc - Simply serves the Hydra Doc
  • apidoc-graph - Fetches Hydra Doc from the Agent, process it in Vis.js Network format and returns it to the GUI
  • /start-agent - Simply starts/restarts the Agent with the URL parameter
  • / - Serves the React build under /console-frontend/build

The React Frontend

Go the the README.md inside console-frontend for further information. If you make modifications inside console-frontend, make sure to run npm run build to create a updated production build.

hydra-python-agent-gui's People

Contributors

anishagg17 avatar chrizandr avatar dependabot[bot] avatar guttz avatar mec-is avatar prathamdogra avatar priyanshunayan avatar sudipt1999 avatar thrishik7 avatar vddesai1871 avatar vedangj044 avatar xadahiya avatar yoboyio 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.