FormidableLabs/converter-react

Name: converter-react

Owner: Formidable

Description: Sample React + Flux app w/ server-side rendering / data bootstrap and more!

Created: 2015-04-30 15:44:06.0

Updated: 2017-05-10 03:05:41.0

Pushed: 2016-11-07 20:47:19.0

Homepage: http://converter-react.formidablelabs.com/

Size: 184

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Converter - React

Build Status Appveyor Status Coverage Status

A simple app written using React and CommonJS, built with Webpack. Based on full-stack-testing.formidablelabs.com/app/ from our “Full. Stack. Testing” training project.

Overview

The converter app has a simple Express-based REST backend that serves string conversions. The frontend app is a React app, crafted with the following:

See the app hard at work!

Notes
Size

To test out how optimized the build is, here are some useful curl commands:

n production build
m run build

nified size
 -c dist/js/*.js
6748 dist/js/bundle.d3749f460563cd1b0884.js

nified gzipped size
ip -c dist/js/*.js | wc -c
7748
Development

For a deeper dive, see: DEVELOPMENT

Dev Mode

Install, setup.

m install           # Install dependencies
m run install-dev   # Install dev. environment (selenium, etc.).

Run the watchers, dev and source maps servers for the real production build:

m run prod

Run the watchers and the Webpack dev server:

m run dev

Run the watchers and the Webpack dev server w/ React hot loader:

m run hot

Ports various servers run on:

URLS to test things out:

Bootstrapped Data

As a development helper, we allow a querystring injection of data to bootstrap the application off of. Normally, you wouldn't allow users to add this, and instead would choose how to best bootstrap your app.

Production

Install, setup.

m install --production
m run build

Run the server.

DE_ENV=production node server/index.js
Contributing

Please see CONTRIBUTING


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.