Skip to main content
Version: v3.x

Clone the Repo

Clone the repo for this project to get started.

# If using GitHub with SSH
git clone [email protected]:hasura/ndc-typescript-learn-course.git
# OR if using GitHub with HTTPS
git clone https://github.com/hasura/ndc-typescript-learn-course.git

You'll see in the main branch two files: finishedIndex.ts and index.ts. The finishedIndex.ts file contains the completed implementation of the connector as reference, while the index.ts file is empty allowing you to 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 .

However, you can run nodemon to watch for changes and rebuild automatically:

npm run dev

Note: the configuration.json file is a pre-configured file which gives the connector information about the data source.