Giter Club home page Giter Club logo

fairris's Introduction

FAIR DO Client

A client (single page web application) that shall demonstrate typical FAIR DO use cases.

Documentation

About more documentation about how this application communicates with other services, refer to the documentation of the testbed4inf.

Usage

A docker container is available as part of the testbed4inf. Manual instructions:

  1. Install Rust and wasm-pack

  2. Build

    • Run bash build.sh. The result is a ready-to-host application which will be stored in the static folder.
    • If you want to compile faster, you can use bash build.sh --dev. Note that the file size of the application will be larger, resulting in potential slower application and longer initial loading time.
  3. Run

    • All you need is to serve the folder static with any webserver. To run it locally, you may use i.e. simple-http-server.
      • Install simple-http-server: cargo install simple-http-server
      • Use: bash serve.sh or customize the command in the serve script.
    • In case you use another http server, please look at the production usage section below.

In case you prefer the python3 http server:

- `python3 -m http.server 8080`

Now, access http://localhost:8080/ in a browser to run the app.

Production usage

This application is supposed as a demonstration. But in case you want to use another webserver i.e. for having an easily accessible instance:

  1. [Neccessary] Make sure your webserver is configured to associate WebAssembly files (.wasm) with the MIME type application/wasm.
  2. [Recommended] Configure your webserver to point every sub-url of the application to the index.html, in case the target is not found. This option is sometimes called "try file" (see serve.sh file).
    • In case this is not configured properly, reloading a page that does not point to the index.html direcly will not work properly. This is not a problem in most cases, just do not reload your page to avoid problems.

As this application is part of the testbed4inf, there is a dockerfile available. You may use this, but currently it is not configured properly for step 2. This will change in the future.

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.