Coder Social home page Coder Social logo

cremafr / horizon-react-webpack-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from juliancwirko/horizon-react-webpack-boilerplate

0.0 2.0 0.0 198 KB

Horizon, React, Webpack boilerplate with demo app

JavaScript 77.30% HTML 7.75% CSS 14.95%

horizon-react-webpack-boilerplate's Introduction

Horizon, React, Webpack boilerplate

Demo app is included.

What you get here:

  1. Horizon / RethinkDB app
  2. React Horizon
  3. React / Webpack complete workflow
  4. Tests configuration

How to start:

  1. You need Node 4.4 or higher
  2. Install RethinkDB here's how: http://rethinkdb.com/docs/install/
  3. Install Horizon from Npm: npm install -g horizon
  4. Git clone this repo
  5. Go to the project folder: cd horizon-react-webpack-boilerplate
  6. Install all Npm dependencies: npm install
  7. Run Horizon server: hz serve --dev
  8. In the second terminal tab run Webpack server: npm start

What else you can do here:

  1. You can run ESLint tests: npm run lint
  2. You can run tests: npm run testonly
  3. You can run tests and linter: npm test
  4. You can build your project for production, dist folder: npm run build

Testing

We use configuration with Mocha, Enzyme, JSDOM, Chai, Sinon etc. You can even test CSS Modules. Check out the example file in __tests__ folder.

Front-end stuff

  1. We use Stylus and sGrid
  2. We use PostCSS and Autoprefixer
  3. We use CSS Modules
  4. We use HMR
  5. There is React Router configuration here although we don't use it in this demo

This boilerplate needs many improvements, but it is quite useful already. If you have any ideas let me know. I plan to build an app based on it so it will be probably improved over time.

There will be also a blog post about it soon. Stay tuned...

ps. I've included .hz/config.toml here in the repo. In the real apps you don't want to do this ;) You need to keep your settings in secret.

horizon-react-webpack-boilerplate's People

Contributors

juliancwirko 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.