Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Frontend for the MIP portal

License

NotificationsYou must be signed in to change notification settings

LREN-CHUV/portal-frontend

Repository files navigation

CHUVLicenseDockerHubCodacy BadgeCircleCI

MIP portal frontend

Summary

MIP Frontend is the web portal for theMedical Informatics Platform for the Human Brain Project.

The portal runs onReact, a JavaScript library for building user interfaces, and embed several libraries, among them are:

Development

This is a minimal setup to do frontend development in this project:

Run the Backend

  • Checkout the master branch of themip-deployment-infrastructure project, and follow the setup instructions.
  • Create a new line in/etc/hosts, so the backend will be accessible throughhttp://frontend/services
    • sudo sh -c 'echo 127.0.1.1 frontend >> /etc/hosts'
  • Launch./run.sh. You will have the MIP frontend running on your computer athttp://frontend

React

This project was bootstrapped withCreate React App.

You can find the most recent version of the Create React App guidehere.

Tests

Local

You can generate models and experiments by running the tests:

  • yarn test

Test live installations

You can use the mip-frontend test suite against any live installation, either locally

echo REACT_APP_BACKEND_URL = "https://qa.mip.chuv.ch" | tee .env &&echo REACT_APP_TOKEN = "xxx" | tee -a .env &&echo REACT_APP_JSESSIONID = "xxx" | tee -a .env &&echo REACT_APP_AUTHORIZATION = "xxx" | tee -a .envyarn test

or as a standalone docker

docker build . -f Dockerfile-test -t hbpmip/portal-frontend-tests
docker run -it \-e BACKEND_URL="https://qa.mip.chuv.ch" \-e TOKEN="c900a5c9-452e-4514-b8a8-c5dda02d03b6" \-e JSESSIONID="2B5967D0870A33E2A55F5C9B641518FB" \-e AUTHORIZATION="Basic c2dhMXJldmlld2VyczpIQlBzZ2Ex" \--rm hbpmip/portal-frontend-tests:latest

Samples tests queries

hbpmip/portal-frontend-tests test

Tests run with Jest, seethe jest cli doc for more details

Build (produce a local docker container)

Run:./build.sh

Publish on Docker Hub

Run:./publish.sh

License

Copyright © 2016-2019 LREN CHUV

Licensed under the GNU Affero General Public License, Version 3.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttps://www.gnu.org/licenses/agpl-3.0.html

Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.

Acknowledgements

This work has been funded by the European Union Seventh Framework Program (FP7/2007­2013) under grant agreement no. 604102 (HBP)

This work is part of SP8 of the Human Brain Project (SGA1).


[8]ページ先頭

©2009-2025 Movatter.jp