This is a GraphQL API for twitter clone. It is built with Ruby on Rails and GraphQL (Free). It is created by Sulman Baig.
You can submit any issue with code at GitHub Issues.
- Ruby 3.2.0
- Rails 7.0.4.2
- Clone the repo
- Run
bundle install
- Run
rails db:create db:migrate db:seed
- Remove
config/credentials.yml.enc
andconfig/master.key
and runrails credentials:edit
to create new credentials - Run
rails s
- Visit
localhost:3000
- Run
rspec
- Run
rubocop
- Run
rails s
- Visit
localhost:3000/graphiql
Make a POST request to localhost:3000/graphql
rails graphql:schema:dump
dumps both aschema.graphql
and aschema.json
rails graphql:schema:json
dumps only aschema.json
rails graphql:schema:idl
dumps only aschema.graphql
Feel free to contact me at [email protected]