An open API service indexing awesome lists of open source software.

https://github.com/victor95pc/rails-react-typescript-example

Basic example using Rails + Webpack + React + Typescript + Hot Reloading
https://github.com/victor95pc/rails-react-typescript-example

hot-reloading rails rails5 react reactjs typescript webpack

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

          

**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](https://yarnpkg.com/lang/en/docs/install), which requires [Node.js](https://nodejs.org/download/).

$ cd webpack && yarn

$ typings install

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

### Running the project

* Run Foreman
```bash
$ foreman start
```

Open [http://localhost:5000](http://localhost:5000)