In this tutorial, you will implement the backend for a Hackernews clone that has the following features:
It’s time for you to create your project!
If you see the following error:
LoadError: Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0. Make sure all dependencies are added to Gemfile.`. Go to and replace the SQLite version:
Gemfile and change the following line:
gem 'sqlite3', '~> 1.3', '< 1.4'
bundle update --source=sqlite bundle exec rails db:create
Now, let’s add GraphQL to the server. First, stop the server.
Usually you don’t need to restart Ruby On Rails, but when you are adding new gems(libraries), this is required.
This will install all the necessary dependencies you need to get started with GraphQL and Ruby.