Coder Social home page Coder Social logo

relay-isomorphic-starter-kit's Introduction

relay-isomorphic-starter-kit

Starter kit for an isomorphic Relay application

NOTE: This project is currently not isomorphic, because Relay's server side rendering is still being worked on (facebook/relay#136 and facebook/fbjs#61).

Features

  • Fully automated toolchain with npm run scripts
  • Hot reloading Express web server with Winston logging
  • Webpack for watching and production builds
  • React + React Router for rendering
  • InlineCSS-component for styling components
  • Helmet-component for titles and meta
  • Relay + React Router Relay for data fetching
  • GraphQL + GraphQL Sequelize for automatic GraphQL schema generation from the Sequelize database schema
  • Babel.js automatically compiles ES6 + ES7
  • React Hot Loader for instant client updates

Installation

git clone https://github.com/DanielHuisman/relay-isomorphic-starter-kit
cd relay-isomorphic-starter-kit

npm install
npm run update-schema

Usage

Development

Run one command to start the self-reloading server and the hot loading Webpack development server for the client files:

# Starts the development server on the port 8080 by default
npm run watch

If you make any changes to you GraphQL schema, execute npm run update-schema to update it before starting the development server.

Production

NODE_ENV=production npm run build
# Starts the production server on port 8080 by default
NODE_ENV=production npm run start

License

ISC license. Copyright © 2015, Daniel Huisman. All rights reserved.

relay-isomorphic-starter-kit's People

Watchers

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