Giter Club home page Giter Club logo

predict-react's Introduction

Nirdizati Research frontend

License MIT HitCount

Master

Build Status codecov Total alerts Language grade: JavaScript

Development

Build Status codecov

React frontend to perform Predictive Monitoring analysis over event logs.

Running in a new environment

The docker build is available @ https://hub.docker.com/r/nirdizatiresearch/predict-react/ in any case if you prefer to setup your environment on yuor own you can refer the Dockerfile.

Docker Compose

To run the project:

docker-compose up react-client

Run an instance of the project

If you are familiar with docker-compose the docker-compose file is available, otherwise if you use pycharm as IDE is available the run configuration in the runConfiguration settings.

package.json contains all supported commands for this project.

Install required components:

npm install

Run build:

npm run build

Run tests:

npm run test

Run start:

npm run start

Thanks to

This project was bootstrapped with Create React App and Storybook.

Contributors

predict-react's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

predict-react's Issues

Backend Endpoint (SERVER_URL) could not be changed

Hi,

I have been trying to run Nirdizati Backend (predict-python) together with Frontend (predict-react), but I have not been able to change SERVER_URL from http://193.40.11.150/ to http://localhost:8090.

I get the following error when I try to upload a log in frontend:
POST http://193.40.11.150/logs/ net::ERR_CONNECTION_REFUSED

I have tried to change docker-compose.yml file to this:

version: "3.4"
services:

  react-client:
    build: .
    command: ["npm", "start"]

and Dockerfile to this:

# Build container
FROM node:12.3.1 as builder

WORKDIR /app
#ENV PATH /app/node_modules/.bin:$PATH

COPY package.json package.json
COPY package-lock.json package-lock.json

RUN npm ci

COPY . /app

I have also changed src/constraints.js file to this:

export const SERVER_URL = `http://localhost:8090`;
export const WEBSOCKET_URL = `ws://localhost:8090/ws/default?subscribe-broadcast`;

But none of the above worked.

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.