Giter Site home page Giter Site logo

dmann / duke-data-service-portal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from duke-translational-bioinformatics/duke-data-service-portal

0.0 1.0 0.0 21.52 MB

A UI portal built on the Duke Data Service API

License: GNU General Public License v3.0

HTML 0.22% CSS 0.46% JavaScript 99.24% Shell 0.06% Dockerfile 0.02%

duke-data-service-portal's Introduction

Duke Data Service Portal

This is a UI web portal built for use with the Duke Data Service API. It is based on webpack. The internal data flow is handled with MobX and routing is managed with React-Router. The UI is handled by material-ui and a layout grid from Google Material Design Lite.

Get the portal

$ git clone https://github.com/Duke-Translational-Bioinformatics/duke-data-service-portal.git 

Installation

Install all dependencies.

$ npm install

Development

Builds the application and starts a webserver with webpack. By default the webserver starts at port 1337. You can define a port in package.json: scripts > start.

$ npm start

Build

Builds a minified version of the application for production in the build folder.

$ npm run build

Testing

We use jest to test our application.
You can run the tests that are defined under app/scripts/__tests__ with

$ npm test

In order to test files that are using the react-router we had to add stubRouterContext.jsx which we found here.

Duke Data Service

The portal interfaces with the [Duke Data Service API](https://github .com/Duke-Translational-Bioinformatics/duke-data-service/tree/master). The API blueprint for Duke Data Service can be found on this API documentation page.

Javascript

Javascript entry file: src/scripts/index.js

MobX

We are using MobX to manage application state. Mobx makes state management simple and scalable by transparently applying functional reactive programming (TFRP). If you want to read more about MobX, check out the readme of the MobX git repo or the MobX API documentation.

React-Router

The routing is done with the react-router. It's especially great for SPA's. We would recommend to read the guide to get an overview of the router features.

ES6 with babel

We are working with the webpack babel loader in order to load our .js/.jsx files. Babel allows you to use ES6 features like class, arrow functions and much more.

CSS

CSS entry file: src/styles/index.css

Webpack Hints

You can find the webpack configuration in the webpack.config.js file. We use the babel-loader in order to load .jsx and .js files via webpack. If it's possible install all your dependencies with NPM. Packages installed with NPM can be used as es6 modules or via require:


import moduleXYZ from 'moduleXYZ';

or


var moduleXYZ = require('moduleXYZ');

You can find all loaders in this list.

###Requirements

  • node
  • npm

duke-data-service-portal's People

Contributors

caseychoiniere avatar donmurry avatar dmlond avatar dburdick avatar dmann avatar chetcorey avatar jonturneratduke avatar erichhuang avatar aprilfeickert avatar

Watchers

 avatar

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.