Git Product home page Git Product logo

all-hail-the-r's Introduction

All Hail The R

The ideas of this repository are to try out all new concepts and libraries which work great with React.js. Additionally, this will be the boilerplate for koa isomorphic or universal application.

Why another one

Main purpose is to learn actually. However, I just luckily to gather best practices from the community. Also I think that I will explain the structure and configuration in details.

Adknowledgement

Development

Single run

$ npm run watch
$ npm start # or npm start development 3000

Or with hot reload

$ npm run watch
$ gulp dev-server # start server
$ gulp dev-server-delete # kill server

See pm2 for more info

Build

$ gulp build
$ npm start # or start pm2

Current setup

  • Koa.js server up and running
  • Webpack bundle with hot reload for both server and client
  • Utilize es6 syntax
  • Flowtype checking using babel-type-check
  • Nunjucks template and macro setups
  • CSS prebundle with bootstrap and FontAwesome
  • Mocha unit test
  • Test coverage by Istanbul

Working on

  • Best practices for server and client
  • E2E testing
  • API
  • Server rendering

Structure

- app/
 |- client/
  |- components/
   |- home/
    |  home-test.js
    |  home.js
  |- lib/
   |  font-awesome.js
   |  index.js
   |  twitter-bootstrap.js
 |- server/
  |- models/
  |- templates/
   |+ application/
   |+ helpers/
   |- layouts/
    |  application.html
 |  app.js
 |  server.js
+ bower_components/
+ build/
- config/
 |- initializers/
  |  middlewares.js
  |  nunjucks.js
  |  settings.js
 |- pm2/
  |  development.json
  |  production.json
 |- webpack/
  |- client/
   |  default.js
   |  development.js
   |  production.js
  |- server/
   |  default.js
   |  development.js
   |  production.js
 |  config.json
 |  path-helper.js
+ node_modules/
+ public/
- scripts/
 |  build
  bower.json
  compiler.js
  gulpfile.js
  LICENSE
  npm-debug.log
  package.json
  README.md

all-hail-the-r's People

Contributors

hung-phan avatar nqbao avatar tungv 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.