Welcome to the GraphQL Workshop application! This README includes directions on how to your development environment up and running.
We rely on the following base libraries/languages/tools:
- Ruby 2.6 (or greater)
- Node v10.15 (or greater)
- sqlite3
- yarn
Please ensure that you have the above installed before continuing.
The first step in starting development is to checkout the code locally, and install dependencies:
$ bundle install --without production
$ yarn install
Both should pass successfully (you can ignore warnings). Note Both will take a while the first time you run them! Please do so ahead of class!
We're using the ultra-simple sqlite
database (as default with new rails projects). You'll need to get the schema loaded by running:
$ bundle exec rails db:setup
$ bundle exec rails db:seed
One two terminal tabs, we'll start two processes:
Tab 1: Rails Server
$ bundle exec rails server
Tab 2: Webpack Dev Server
$ bundle exec ./bin/webpack-dev-server
You're ready to develop our sample app! 🎉