A template for an app with Ember as the frontend and a Rails API as the backend. Includes:
- JSON-API
- OAuth2 authentication
- Deployment to Heroku
This template stores the Rails and Ember apps in the same repo, and serves both the Ember app and the API out of Rails. This is useful for simple deployment, but may not be the most resource-efficient for your use case. Many of the patterns in this app (JSON-API setup, OAuth2 integration) will be useful even if your Rails and Ember apps are separated in version control and deployment.
- Ruby
- PostgreSQL
- Node.js
- Yarn
- Ember CLI
- Foreman
bin/bootstrap
- installs Rails dependencies withbundle install
and Ember dependencies withyarn install
bin/test
- runs Rails tests withbundle exec rspec
and Ember tests withember test
. If a Rails test fails, the Ember test suite will be skipped.
bin/serve
- runs the Rails server, with Ember building intopublic/
and watching for any changes
bin/production
- migrates the DB, builds Ember once into thepublic/
folder, then starts the Rails server
MIT