elsangedy / graphql-api

API with GraphQL, Node.js, MongoDB, TypeScript, DataLoader, AST, Mocha, Chai, Nyc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

graphql-api

API with GraphQL, Node.js, MongoDB, TypeScript, DataLoader, AST, Mocha, Chai, Nyc

Setup

$ git clone https://github.com/elsangedy/graphql-api.git
$ cd graphql-api
$ yarn install

Run

# run mongodb with docker
# need create graphql database
$ docker-compose up -d

# need two terminal tabs
# one: watch all changes and build .ts
$ yarn run watch
# two: nodemon watch all changes in ./dist and refesh application
$ yarn run dev

Test

# only tests
$ yarn run test
# tests and code coverage with nyc
$ yarn run coverage

About

API with GraphQL, Node.js, MongoDB, TypeScript, DataLoader, AST, Mocha, Chai, Nyc

License:MIT License


Languages

Language:TypeScript 99.0%Language:JavaScript 1.0%