Awesome Open Source
Awesome Open Source

Erlang Performance Lab UI

Build Status Code formatting Code formatting

UI for Erlang Performance Lab

This project is deprecated. Repo was merged into erlangpl. Please report issues there.

Getting started

erlangpl-ui can be started standalone using Node with npm or yarn. We are recomending yarn for that.

git clone https://github.com/erlanglab/erlangpl-ui.git
cd erlangpl-ui
yarn
yarn start

Now, application can be found at localhost:3000 and will be listening for messages from localhost:8000 where you have to have erlangpl running.

Writing Elm code

Although erlangpl-ui is written in React we belive in Elm power. Because of that we support Elm in out build process. This is possible because of react-elm-components and elm-webpack.

You can write any separate component in Elm and then wrap it into React component which can be integrated with whole application. Elm code should be placed in src/elm and every component whould have main file in this directory and all files related to this component in directory with the same name. React wrapper file should have the same name as Elm component and flow should be disabled for this file.

-- src/elm/About.elm

module About exposing (..)

import Html exposing (text)

main =
    text "Hello world from Elm component"
// src/about/components/About.js

import React from 'react';
import Elm from 'react-elm-components';
import { About } from '../../elm/About.elm';

import './About.css';

const AboutWrapper = () => {
  return (
    <Elm src={About} />
  );
};

export default AboutWrapper;

Code formatting

We belive in code consistency. Because of that we care about code formatting.

Elm

Elm code should be formatted using latest version of elm-format

JavaScript

JavaScript code should be formatted using latest version of prettier with singleQuote: true.


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,555,917
Reactjs (72,970
Erlang (10,492
Elm (6,246
Visualization (5,542
Related Projects