A Simple Example on How to Build an API App Based on Trailblazer and GraphQL.
The related article is located by link.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Clone the repo:
git clone [email protected]:rubygarage/graphql-tutorial.git
Install bundler
gem install bundler
Run bundle in project directory
bundle install
Create database
rails db:create
rails db:migrate
# or just rails db:setup
Run Server
rails s
rspec
The in-browser IDE for exploring GraphQL is available from within app (under the http://localohost:3000/graphiql path)
- Rails - The web framework used
- Bundler - Dependency Management
- Trailblazer - A gem for creating a high-level architecture in an application
- GraphQL - A query language for getting data and declaring its structure