Rails + GraphQL + Ember.
This is an opinionated template repository used for creating modern web applications at ParableSoft.
Feel free to open up a pull request with any suggestions for improvement.
You will need the following things properly installed on your computer.
You can use this template to create a new GitHub repository here.
To clone this repository:
git clone https://github.com/parablesoft/embrails.git
this repositorycd embrails
bin/development/setup
We don't include gems and node modules as part of docker-compose development build process. Instead, we prefer to utilize volumes to store gems and node_modules so that we can cache dependencies between build if we need to modify our Gemfile
or package.json
.
docker-compose up
- Visit your app at http://localhost:4200.
- Visit your GraphQL IDE at http://localhost:3000/graphiql.
- Visit your email inbox at http://localhost:8025/. This is where emails emails will be sent from rails in development mode.
bin/test/full
- To run RSpec
docker-compose run
- To run rubocop
docker-compose run api bundle exec rubocop --require rubocop-rails
. - To run ember test server
docker-compose run --service-ports web ember test -s
and view the testem dashboard at http://localhost:7357.
Typing out docker-compose
each time can get old quick, we like to bind that to the command dc
. Add an alias in your .bashrc
file:
echo "alias dc=\"docker-compose\"" >> ~/.bashrc
source ~/.bashrc
You can now use dc
in place of anywhere you see docker-compose
above.
Specify what it takes to deploy your app.