GithubHelp home page GithubHelp logo

fnndsc / chris_store_ui Goto Github PK

View Code? Open in Web Editor NEW
49.0 11.0 49.0 6.2 MB

UI for the ChRIS Store

License: MIT License

HTML 0.43% JavaScript 84.69% CSS 14.19% Dockerfile 0.26% Shell 0.43%
javascript typescript reactjs html5 css3 patternfly medical spa hacktoberfest chris-store

chris_store_ui's Introduction

ChRIS logo ChRIS_store_ui

UI for the ChRIS Store.

Homepage

MIT License Last Commit Stars Forks

Quickstart

First, get the ChRIS store backend running. Assuming the backend is on http://localhost:8010/api/v1/:

docker run --rm -d --name chris_store_ui -p 3000:3000 -e REACT_APP_STORE_URL=http://localhost:8010/api/v1/ fnndsc/chris_store_ui:latest

Preconditions

Install latest Docker. Currently tested platforms:

Optionally get the backend services up so you can fully test the UI against actual data

  • Install latest Docker Compose
  • On a Linux machine make sure to add your computer user to the docker group

Then open a terminal and fire the backend services up:

$ git clone https://github.com/FNNDSC/ChRIS_store.git
$ cd ChRIS_store
$ ./make.sh up

You can later remove all the backend containers and release storage volumes with:

$ cd ChRIS_store
$ ./make.sh down

Start UI development server

Using node and yarn package manager directly on the metal

Open a new terminal and type:

$ git clone https://github.com/FNNDSC/ChRIS_store_ui.git
$ cd ChRIS_store_ui
$ yarn install
$ yarn start

Using docker

Open a new terminal and type:

$ git clone https://github.com/FNNDSC/ChRIS_store_ui.git
$ cd ChRIS_store_ui
$ docker run --rm -it -v "$(pwd):/home/localuser" -p 3000:3000 -u $(id -u):$(id -g) --name chris_store_ui fnndsc/chris_store_ui:dev

Open http://localhost:3000 to view it in the browser.

Precommit

Before each commit, a precommit script is run automatically to ensure all tests pass and all JavaScript code follows the Airbnb style guide.

Please note that if you are using the docker commands then you need to run git inside the container. For instance open a new terminal and type:

$ docker exec -it chris_store_ui git status

Notes:

  1. Add .env.local, .env.local, .env.development.local, .env.test.local, .env.production.local file at root to change any local settings

Additional Notes from Create React App:

This project was bootstrapped with Create React App.

Run the interactive tests

Using node and yarn package manager directly on the metal

Open a new terminal and type:

$ yarn test

Using docker

Open a new terminal and type:

$ docker exec -it chris_store_ui yarn test

Launches the test runner in the interactive watch mode.

See the section about running tests for more information.

Build the ChRIS Store UI app for production

$ cd ChRIS_store_ui
$ docker build -t local/chris_store_ui .

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!

Deploy and serve the ChRIS Store UI app

$ docker run --name chris_store_ui -p <desired port>:3000 -d local/chris_store_ui

Development and deployment of the ChRIS Store UI directly on the metal

Consult the Wiki here.

Learn More

Interested in contributing? https://chrisproject.org/join-us

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

chris_store_ui's People

Contributors

aaishpra avatar adamj avatar anujsi avatar anujsingla avatar archanaserver avatar archijaiswal avatar chizycodes avatar dependabot[bot] avatar divyanshisingh avatar ethanhou99 avatar euginelethal avatar gagansk avatar jbernal0019 avatar jcaianirh avatar jdtzmn avatar jennydaman avatar jramcast avatar mairin avatar olivcamj avatar ppk-1996 avatar sandip117 avatar seundede avatar somya51p avatar sonylomo avatar zrthxn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chris_store_ui's Issues

Footer stuff

  • footer nav links are... not links
  • copyright message outdated
  • footer not expanded to bottom of page if main content is too small

are you sure?

provide are you sure? for delete action in dashboard page

Update quickstart page

The accurate documentation is here: https://github.com/FNNDSC/cookiecutter-chrisapp/wiki/Quickstart

Recoding the provided documentation onto this site would work. Below, two more advanced implementations are described:

a) The documentation is in ASCIIDoc format. It is possible to create an ASCIIDoc to JSX converter.

b) develop interactive features, such as having a terminal you can type in, or clicking on a terminal command to expand out help on what the command does.

Change create user flow

Developer page should Not have the form for creating an account
dashboard should keep the current behavior of appearing only once a dev has logged in.
Creating a dev account should be on a new page:
Should only show the signup form (currently on the Developers page)

@jbernal0019 @rudolphpienaar

Re-enable auth tests

After updating the login flow auth tests do not work because an email address is the format for the username. Checking with @jbernal0019 to see how we can change the cube username to use an email format. See SignIn.test.js

Apps available section doesn't do anything

The "Apps available" section on the homepage doesn't do anything. The app icons don't take you to the page related to the plugin and the down-arrow button doesn't open more plugins.

Screenshot (34)

Expected Behavior

  • The icons should open the page related to the plugin.
  • The down arrow should either open a list or take you to the /plugins page

Travis Integration?

It might be helpful to have a Travis CI integration in order to run the unit tests.
I'm thinking that it would be nice to be able to see the status of the tests for each pull request.
Would you be interested in me adding this @jcaianirh?

Plugin Creation with existing name

There is an unexpected behaviour of Plugin creation when a new plugin with an already existing name is created. These are the observations as of now:

  • API rejects the request for a plugin creation with an existing name.

  • Everything seems to be fine in the UI, but error messages can be seen on the console.

  • As of now, the suspect is the state of the React component.

screen shot 2019-02-20 at 8 46 36 am

More investigation is needed.

Show warning when docker image ends with ":latest"

It is bad practice to use the :latest docker images, because the app (e.g. its command-line options) are subject to change in later versions.

The warning message might briefly explain why it's a bad practice, and suggest a remedy:

docker tag user/pl-mything:latest user/pl-mything:1.0.1
docker push user/pl-mything:1.0.1

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.