GithubHelp home page GithubHelp logo

kaneschutzman / lifequote Goto Github PK

View Code? Open in Web Editor NEW

This project forked from insin/lifequote

0.0 2.0 0.0 496 KB

React port of a life insurance quick quoting application

Home Page: http://insin.github.io/lifequote

JavaScript 85.68% CSS 14.10% HTML 0.22%

lifequote's Introduction

lifequote

A port of an existing Flash-based life insurance quick quoting application to a single-page JavaScript app, built with (and to learn) React.

Node.js is required to build lifequote and run its dev server.

Dev Server

A dev server is provided to serve up lifequote from the /public directory and provide a basic implementation of the API lifequote calls.

Use Node.js' package manager - npm - to install runtime dependencies and start the dev server:

npm install --production
npm start

Useful dev server URLS:

Poxy Proxy?

An easter-egg for anyone behind an NTLM proxy which just made their npm install experience not go so well - make sure npm is configured to use your proxy and to hit the HTTP version of its registry:

npm config set proxy <your proxy here>
npm config set registry http://registry.npmjs.org

Development

Modules

Source modules live under /src - any directory layout may be used within /src, but each module within it must have a unique filename.

Other modules can be required by calling require with their module name (without the file extension):

var SomeComponent = require('SomeComponent')

Files which use React's JSX syntax must have a .jsx extension and begin with a block comment containing the JSX pragma, otherwise they will not be compiled:

/** @jsx React.DOM */

If you have a documentation comment at the start of a .jsx module, it must have the JSX pragma on the last line.

Building

Lifequote uses gulp to compile JSX to JavaScript and to create a build of the codebase which hooks required dependencies up.

By default, it will copy an uncompressed version of the built app to /public/js/app.js.

To install development dependencies:

npm install
npm install -g gulp

This will install a global gulp command. Running gulp in the lifequote project directory will trigger an initial build and will leave gulp watching for any changes to .js and .jsx files under /src, which will automatically trigger a rebuild.

With both the dev server and gulp running, you can refresh the page after making changes to pick up the latest build.

lifequote's People

Contributors

insin avatar

Watchers

James Cloos avatar  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.