jefersoneiji / graphql-typescript-template

A graphql server combined with typescript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

graphql image

Graphql Typescript Template

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

Installation

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

Accessing GraphiQL

Use this address

http://localhost:4000/graphql

Docker

  1. To build the image type
docker build -t graphql-typescript-template .
  1. Create and run containers from image
docker run -dp 127.0.0.1:4000:4000 graphql-typescript-template
  1. Open container in editor For vscode, you may use the dev containers extension
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.

About

A graphql server combined with typescript.


Languages

Language:TypeScript 100.0%