/hn-api

HN API clone built w/ Rails + GraphQL

Primary LanguageRuby

rails graphql

Hacker News Clone API

This is a Hacker News API clone built as a tutorial for learning GraphQL. I followed the Rails track on How to GraphQL. Through this tutorial I defined a GraphQL schema, connected various types, wrote mutations to create and edit data, and I built complex queries. In addition, several of the resolver functions are covered with unit tests.

Development

  1. Clone the Repo onto your Local Machine
git clone git@github.com:dalibran/hn-api.git
  1. Navigate to the Project Directory and Install Relevant Gems
bundle install
  1. Start the Rails server and navigate to /graphiql to play with the API
rails s