Use this project to get a Tenon application bootstrapped quickly. It provides everything you need to integrate webpack with Rails and serve Tenon’s assets.
This project is based on a lot of tutorials by a lot of great people, but probably most closely resembles github.com/mikechau/rails-hot-react-webpack-example
To get started, simply run the webpack-dev-server and the rails server, then visit localhost:9999/tenon in your browser
npm run start rails server
When deploying in production run ./build.sh
. This will run the webpack production build task and then Rails’ assets:precompile
task.
This project stubs some user-related things out in ApplicationController
. You’ll probably want to install Devise or something similar in your project.