IN-CORE / incore-ui

IN-CORE Web Tools: a component of IN-CORE. It consists of data viewer, hazard viewer, and fragility viewer.
https://incore.ncsa.illinois.edu
Mozilla Public License 2.0
4 stars 0 forks source link

Incore Service UI

Work in Progress

Uses react.js, redux, webpack, babel, handsontable

Requirements: Node.js and Yarn.

Install dependencies: yarn install or npm install

Connect with remote development server: npm run start:dev Connect with remote test server: export INCORE_REMOTE_HOSTNAME=https://incore-tst.ncsa.illinois.edu and run yarn start or npm start Connect with remote prod server: export INCORE_REMOTE_HOSTNAME=https://incore.ncsa.illinois.edu and run yarn start or npm start Connect with local server: export INCORE_REMOTE_HOSTNAME=http://localhost:8080 and run yarn start or npm start

Build: yarn run build or npm run build

Docker

To build the container you can use either of these

# development
docker build -t incore/frontend:develop .
# production
docker build -t incore/frontend:latest .

To test docker container:

docker run -ti --rm --name frontend -p 8888:80 incore/frontend

Now you can connect using the browser at http://localhost:8888/

To update the tags:

docker exec frontend /getVersionTags.sh