Todo List GraphQL API
This repo is the source companion for the Building a GraphQL API in Rails
tutorial series.
Setting up
Requirements
- Ruby 2.5.1
- Rails 5.2.0
- Postgresql => 10.3
- Graphiql - The GraphQL client
- Your favorite editor.
Installation
Clone the repo.
git clone https://github.com/ranchow/todos_graphql-api.git
cd into the directory and install the reqirements.
cd todos_graphql-api && bundle install
set up the database
rails db:create; rails db:migrate; rails db:seed
Start the server
rails s
Running tests
Running all tests.
bundle exec rspec
Running a specific test file
bundle exec rspec ./spec/path/to/file
Contributing
To contribute, fix bugs that I might have missed or just want to play around, just go ahead and fork the repo, add a feature branch and raise a pull request.