Coder Social home page Coder Social logo

react-boilerplate's Introduction

#react-boilerplate

##Overview

The react-boilerplate is a collection of configuration files and organization conventions designed to ease the process of bootstrapping new javascript heavy web applications. It uses gulp as a build tool and sass to generate CSS. Both tools require some minimal setup.

##Installation

  1. Clone this repo and point it at a new git repository for your project.

  2. Install node. If you're on OSX, there's a handy pkg installer available on the node homepage. This is the recommended method of installation.

  3. Install the gulp CLI as a global node package. npm install -g gulp

  4. Install the dependencies for your project. From the root of this repo, run npm install. This will read the packages.json file and install packages into ./node_modules.

  5. Configure your application in config.js:

    • apiFallback: This is the url of the API you are pointing to.
    • portFallback: This is the port you will access the web server on. it defaults to http://localhost:9000.
  6. Start the development server with gulp.

##Goodies

Here are some common, custom patterns you can use with the boilerplate.

###Simple Proxy

No need to worry about Cross domain calls! To fetch outside data...

var ajax = require('ajax');

// For your server...
ajax.get('/api/session/login');

react-boilerplate's People

Contributors

jasonsee avatar jeffpamer avatar kaw2k avatar mattd avatar oconn avatar

Stargazers

 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.