Skip to content

Basic example using Rails + Webpack + React + Typescript + Hot Reloading

Notifications You must be signed in to change notification settings

victor95pc/rails-react-typescript-example

Repository files navigation

IMPORTANT: This example doesn't load CSS and Images from webpack, so you need to put all on public, for now.

Getting started

Dependencies

To run this project you need to have:

  • Ruby 2.2.5

  • Rails 5.0

  • NodeJS 6.9.4

  • Yarn 0.21.3

  • Webpack 1.14.0

  • TypeScript 2.2.1

  • Typings 2.1.0

Setup the project

  • Clone the project

  • Install the gems

      $ bundle install
    
  • Install the front-end dependencies

      $ yarn
    

    Requires yarn, which requires Node.js.

      $ cd webpack && yarn
    
      $ typings install
    

If everything goes OK, you can now run the project!

Running the project

  • Run Foreman
$ foreman start

Open http://localhost:5000

About

Basic example using Rails + Webpack + React + Typescript + Hot Reloading

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published