graphql-nexus / tutorial

Code for the Nexus tutorial

Home Page:https://www.nexusjs.org/#/tutorial/introduction

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nexus tutorial

This is the final code of the GraphQL API built in the Nexus tutorial 🚀.

Code will evolve as we update the tutorial.

Usage

1. Install the dependencies

npm install

2. Setup the PostgreSQL database (using Docker)

docker run --detach --publish 5432:5432 -e POSTGRES_PASSWORD=postgres --name postgres postgres:10.12

3. Start the server

To interact with the API in a GraphQL Playground, all you need to do is execute the dev script defined in the package.json:

npm run dev

4. Run the tests

npm run test

About

Code for the Nexus tutorial

https://www.nexusjs.org/#/tutorial/introduction

License:MIT License


Languages

Language:TypeScript 81.4%Language:JavaScript 17.1%Language:Shell 1.5%