Coder Social home page Coder Social logo

z-react / generator-koa-react Goto Github PK

View Code? Open in Web Editor NEW

This project forked from doug-wade/generator-koa-react

0.0 2.0 0.0 40 KB

A yeoman generator for creating a stack with react powered by koa

License: MIT License

JavaScript 97.68% CSS 0.62% HTML 1.69%

generator-koa-react's Introduction

generator-koa-react NPM version Build Status Dependency Status Coverage percentage

A yeoman generator for using react backed by koa

Check out the generated boilerplate at https://github.com/doug-wade/example-koa-react.

Installation

First, install Yeoman and generator-koa-react using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-koa-react

Then generate your new project:

yo koa-react

Getting Started

To start the server, just run npm start and navigate to localhost:3000 in your favorite browser.

To install the build toolchain

npm install -g gulp bunyan babel

Directory structure

browser <- the javascript source files for the browser
build <- transpiled server-side javascript
public <- files that are served by koa (compiled js, preprocessed css, compressed html)
server <- the javascript source files for the server
styles <- the styles, preprocessed
test <- tests and fixtures
view <- the html

Because we serve using browserify, the node api is available in the browser the same as on the server, so the distinction between browser and server is a little hazy, and you can free require between them and reasonably expect it to work.

Running the tests

To run the tests, run npm test, or gulp build && gulp test, or ava test/*.js.

When debugging the tests, note that the tranpiler doesn't output debugger statements, so you'll need to place them in the transpiled js in build/, or place them in the browser.

More in depth

To develop against the stack, you may also want to familiarize yourself with some of the tools here. Here are some relevant links

Getting To Know Yeoman

Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced. Feel free to learn more about him.

License

MIT © Doug Wade

generator-koa-react's People

Contributors

doug-wade avatar greenkeeperio-bot avatar

Watchers

 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.