Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jefersoneiji/graphql-typescript-template

A graphql server combined with typescript.
https://github.com/jefersoneiji/graphql-typescript-template

bash containerization docker dockerfile graphql nexus-graphql typescript

Last synced: 16 days ago
JSON representation

A graphql server combined with typescript.

Awesome Lists containing this project

README

        


graphql image


Graphql Typescript Template


This template is meant to be used in back-end development.

## Installation

1. Clone this repository
```cmd
https://github.com/jefersoneiji/graphql-typescript-template.git
```
2. Install dependencies
```cmd
yarn install
```
3. To run this project execute
```cmd
yarn start
```

## Accessing GraphiQL

Use this address
```
http://localhost:4000/graphql
```

## Docker

1. To build the image type
```cmd
docker build -t graphql-typescript-template .
```
2. Create and run containers from image
```cmd
docker run -dp 127.0.0.1:4000:4000 graphql-typescript-template
```
3. Open container in editor
For vscode, you may use the dev containers extension
```cmd
https://code.visualstudio.com/docs/devcontainers/containers
```

## Known issues

Q: After the container is opened, git may show some files as modified although nothing was changed.

A: In this case, just discard all "changes" and you're good to go.