https://github.com/elsoul/souls-api
SOULs API Ruby Rack APP
https://github.com/elsoul/souls-api
Last synced: 6 months ago
JSON representation
SOULs API Ruby Rack APP
- Host: GitHub
- URL: https://github.com/elsoul/souls-api
- Owner: elsoul
- Created: 2020-12-08T20:39:29.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-09T15:27:42.000Z (almost 5 years ago)
- Last Synced: 2025-03-25T04:54:48.307Z (7 months ago)
- Language: Ruby
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL server with Sinatra (Ruby) #
A step by step tutorial to write a graphql server in sinatra (ruby), using the [graphql](https://github.com/rmosolgo/graphql-ruby) gem.
### Steps ###
- STEP 1: Create a Sinatra application
- STEP 2: Add JSON responses
- STEP 3: Add database connections and models with ActiveRecord
- STEP 4: Add graphql and define a query to list speakers
- STEP 5: Adding a Mutation root type
- STEP 6: Define a Mutation for speaker creation### Read more at Medium ###
Part 1 - [Sinatra Setup and Querying](https://medium.com/hash32/graphql-server-with-sinatra-ruby-part-1-fdd664170715)
Part 2 - [Mutations](https://medium.com/hash32/graphql-with-sinatra-ruby-part-2-mutations-d6903699af3e)