rethinking-rest
rethinking-rest copied to clipboard
A repository for Safari Online live-training - Intro to GraphQL
Rethinking REST
A hands-on guide to GraphQL and queryable APIs
Client
Requires a modern browser capable of running ES6 JavaScript
Node server
Requires Node >= 8.9
Before the class
-
In your terminal, navigate to the
node_server/project
folder -
npm install
to install libraries -
npm start
to run
knex seed:run
to reset seed data
Django server
Requires Python 3.6 or higher.
Before the class
- In your terminal, navigate to the
django_server/project
folder - Create and activate a virtual environment (optional, but recommended). If you need help, follow this video or this tutorial.
-
pip install -r requirements.txt
-
python manage.py runserver
to run
python manage.py loaddata users books
to reset seed data