Clone the Repo
You can use this course by watching the videos and reading, but you can also
clone the finished repo to see the finished result in
action straight away. Or, to follow along starting from a skeleton project, clone the repo and checkout the
follow-along
branch:
# If using GitHub with SSHgit clone git@github.com:hasura/ndc-typescript-learn-course.git# OR if using GitHub with HTTPSgit clone https://github.com/hasura/ndc-typescript-learn-course.git
To checkout the follow-along
branch:
git checkout follow-along
Then install the dependencies:
npm install
You can build and run the connector, when you need to, with:
npm run build && node dist/index.js serve --configuration configuration.json
However, you can run nodemon to watch for changes and rebuild automatically:
npm run watch
Note: the configuration.json file is a pre-configured file which gives the connector information about the data source.
Did you find this page helpful?
Start with GraphQL on Hasura for Free
- Build apps and APIs 10x faster
- Built-in authorization and caching
- 8x more performant than hand-rolled APIs