Building a COVID-19 live tracker API with Rails 6 and GraphQL

  1. Create a new Rails API app called corona-ql
rails new corona-ql --api --database=postgresql --skip-yarn --skip-action-mailer --skip-action-cable --skip-coffee --skip-javascript --skip-turbolinks
cd corona-ql
rails g model Country country_name
rails g model Summaries
rails db:create db:migrate
rails g graphql:install
rails db:seed
rails c
Country.all
rails g graphql:object country
rails g graphql:object summary
Querying out find_country field
Querying our country_filter field

--

--

--

Growth at Moni(YC W22) | Adebola.dev

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Build a Responsive Bootstrap Website?

Prometheus Pushgateway on Cloud Foundry with Basic Authentication

My Ruby on Rails project cheatsheet: Stuff I’ve had to look up 100 times

My secret sauce for running a developers community

AWS CodeBuild vs Travis CI

Google gave me 30 days to update my app then SUSPENDED it after just 4 days!

What is a String?

Docker Image Optimization

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adebola Adeniran

Adebola Adeniran

Growth at Moni(YC W22) | Adebola.dev

More from Medium

Build a WebSocket Connection with AWS Lambda in React and Ruby

How to solve the SSL error for Redis 6 on Heroku?

New skills learned on Games and Reviews project

Implementing a progress bar gem into a ruby CLI app