mejiaej / apollo-tsed

graphql using ts.ed apollo integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

apollo-tsed

Important! Ts.ED requires Node >= 10, Express >= 4 and TypeScript >= 3.

Example project using Ts.ED framework, Apollo GraphQL and TypeOrm

See Ts.ED project for more information.

Development setup

1. install dependencies
$ yarn install

2. docker services (postgres db)
$ docker-compose build
$ docker-compose up

3. serve
$ yarn start

4. Go to http://localhost:8083/graphql

alt text

Integration tests

1. install dependencies
$ yarn install

2. docker services (postgres db)
$ docker-compose build
$ docker-compose up

3. run integration tests
$ yarn test

Production setup

NOTE: Graphql playground not available in production mode

1. build
$ yarn install
$ yarn build

2. docker services
$ docker-compose build
$ docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d

3. graphql server ready in http://localhost:8083/graphql

NOTE: Remember to stop docker containers if testing locally

About

graphql using ts.ed apollo integration


Languages

Language:TypeScript 76.3%Language:Dockerfile 11.4%Language:JavaScript 9.7%Language:TSQL 2.6%