View the Medium blog for this tutorial here.
This tutorial was created using tortilla, an incredible framework for building tutorials.
Starting with the very first commit, every commit in Chatty represents the next step in the tutorial. Follow the tutorial for a guided walk through the code, or investigate a commit to see exactly what code changed for a given step. Since this is git, you can even download the app at any step in the tutorial -- how cool is that?!
- Setup
- GraphQL Queries with ApolloServer
- GraphQL Queries with React Apollo
- GraphQL Mutations & Optimistic UI
- GraphQL Pagination
- GraphQL Subscriptions
- GraphQL Authentication
- GraphQL Input Types
npm install # install server dependencies
cd client && npm install # install client dependencies
For Steps 7 and higher, please enter your configuration variables in .env
:
# use your own secret!!!
JWT_SECRET=your_secret
npm start # start the server
cd client && react-native run-ios # start RN client
This project welcomes code contributions, bug reports and feature requests. Please see the guidelines in CONTRIBUTING.MD if you are interested in contributing.
MIT License
Copyright (c) 2018 Simon Tucker
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Begin Tutorial > |
---|