GithubHelp home page GithubHelp logo

mozlando-frontend-demo's Introduction

Mozlando Frontend Demo

Original sample code is on erikras/react-redux-universal-hot-example.

This is an experiment to test out what Redux + React + universal JS looks like as a demo Addons front-end.

The idea to it to try and do the following:

  • Create a basic fake search API that returns random data.
  • Create a basic search result page.
  • Play with forms that work server-side only as well as via redux.
  • It doesn't need to look pretty though we can hack together some styles.

Getting started

  • You'll need nvm + node 4.x + npm 3.x to be able to install the node deps. You may need to npm install -g npm after updating node.
  • Once you have that install the deps with npm install.
  • To fire things up use npm run dev.
  • The redux devtools can be shown with ctrl+shift+h.

Running the production version.

The CSS only fully works with JS when running the dev server. To see it without JS you'll need to build it for production.

To see the built-code running fully as a universal app you can built and run it in production mode with:

npm run build
PORT=8080 npm run start

Deploying to Heroku

  • Set heroku config:set NPM_CONFIG_PRODUCTION=false to install dev deps.
  • Push to heroku:master

Demo Site

See https://mozlando-frontend-demo.herokuapp.com/

mozlando-frontend-demo's People

Contributors

mstriemer avatar muffinresearch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

mozlando-frontend-demo's Issues

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.