Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/graphql-nexus/tutorial
- Owner: graphql-nexus
- License: mit
- Created: 2020-06-22T08:57:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T16:11:12.000Z (24 days ago)
- Last Synced: 2024-10-25T22:30:15.086Z (23 days ago)
- Topics: graphql, nexus, tutorial, typescript
- Language: TypeScript
- Homepage: https://www.nexusjs.org/#/tutorial/introduction
- Size: 228 KB
- Stars: 11
- Watchers: 2
- Forks: 6
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```