Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/graphql-nexus/tutorial

Code for the Nexus tutorial
https://github.com/graphql-nexus/tutorial

graphql nexus tutorial typescript

Last synced: about 18 hours ago
JSON representation

Code for the Nexus tutorial

Awesome Lists containing this project

README

        

# Nexus tutorial

This is the final code of the GraphQL API built in the [Nexus tutorial](https://www.nexusjs.org/#/tutorial/introduction) 🚀.

Code will evolve as we update the tutorial.

## Usage

#### 1. Install the dependencies

```sh
npm install
```

#### 2. Setup the PostgreSQL database (using Docker)

```sh
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:

```sh
npm run dev
```

#### 4. Run the tests

```sh
npm run test
```