Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kbariotis/typescript-graphql-server
A simple Graphql server with TypeScript
https://github.com/kbariotis/typescript-graphql-server
apollo-server graphql koa typescript
Last synced: 3 months ago
JSON representation
A simple Graphql server with TypeScript
- Host: GitHub
- URL: https://github.com/kbariotis/typescript-graphql-server
- Owner: kbariotis
- Created: 2020-03-20T20:57:09.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T01:40:26.000Z (about 2 years ago)
- Last Synced: 2024-04-15T02:18:23.537Z (10 months ago)
- Topics: apollo-server, graphql, koa, typescript
- Language: TypeScript
- Homepage: https://kostasbariotis.com/graphql-server-typescript/
- Size: 790 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## GraphQL server with TypeScript
**This is an example on how to create a GraphQL server with TypeScript. [Read more on my blog post](https://kostasbariotis.com/graphql-server-typescript).**
A simple GraphQL server using TypeScript, Koa and [apollo-graphql-server](https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-koa). It also provides a basic file structure to separate the schema and the resolvers to different files.
Tests included!
### Usage
To build the server:
> `yarn build`
To start the server:
> `yarn start`
To run the tests:
> `yarn test`