fabric-testbed / fabric-portal

FABRIC portal repo
MIT License
4 stars 0 forks source link
reactjs

FABRIC Portal

FABRIC Portal is a web based reflection of the user's rights and project associations within FABRIC. From Portal the user can view resources, manage projects and experiments. Portal relies on the information it receives from CILogon/COmanage and from the System Services to determine what the user sees or has access to.

Overview

FABRIC Portal Site Map - v5

Portal provides a graphical user interface to many testbed functions:

FABRIC Portal - portal design v5

FABRIC System Services and Portal consist of multiple components:

Environment and Configuration

For local development you will need install Node JS and npm will automatically be installed.

For IDE, Visual Studio Code is highly recommended. After installation of VS Code, there are two helpful extensions to install for better development experience: Simple React Snippets and Prettier Code Formatter.

config.template

cd src
cp config.template config.json            # create the config.json file
vim config.json                           # set api urls accordingly

Scripts

In the project directory, you can run:

npm install

Install all modules listed as dependencies in package.json.

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Resources