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
- Host: GitHub
- URL: https://github.com/victor95pc/rails-react-typescript-example
- Owner: victor95pc
- Created: 2017-03-04T15:17:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-26T11:25:49.000Z (over 7 years ago)
- Last Synced: 2025-03-02T02:19:59.440Z (7 months ago)
- Topics: hot-reloading, rails, rails5, react, reactjs, typescript, webpack
- Language: Ruby
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)