example-graphql-api
example-graphql-api copied to clipboard
Example API with GraphQL endpoint in TypeScript
trafficstars
example-graphql-api
This is an example GraphQL API in TypeScript.
Complete stack:
- TypeScript
- GraphQL
- Inversify.js
- TypeORM
- Postgresql
Installation
Make sure you have yarn installed, and run:
yarn install
Development
Run:
yarn start
There are 3 endpoints available:
- GraphQL endpoint: http://localhost:3000/graphql
- GraphiQL endpoint, where you can test different queries: http://localhost:3000/graphiql
- Schema overview endpoint: http://localhost:3000/schema