https://github.com/aaronhayes/graphql-rest-typescript-example
Apollo + Sofa + Swagger UI + TypeScript Example
https://github.com/aaronhayes/graphql-rest-typescript-example
apollo apollo-server apollo-server-express express graphql rest sofa swagger-ui typescript
Last synced: about 1 month ago
JSON representation
Apollo + Sofa + Swagger UI + TypeScript Example
- Host: GitHub
- URL: https://github.com/aaronhayes/graphql-rest-typescript-example
- Owner: aaronhayes
- Created: 2019-06-08T01:31:02.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T18:30:52.000Z (over 3 years ago)
- Last Synced: 2025-07-02T01:36:15.124Z (12 months ago)
- Topics: apollo, apollo-server, apollo-server-express, express, graphql, rest, sofa, swagger-ui, typescript
- Language: TypeScript
- Size: 359 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Apollo Express + Sofa + Swagger UI Example
This is a basic example of settings up a GraphQL Server using Typescript and wrapping those endpoints with automatically generated REST APIs. We're using Sofa to use generate the REST APIs, and swagger to expose documentation.
## Getting Started
1. Install Node Depdencies `yarn`
2. Start Express Server `yarn start`
This produces three endpoints:
- [GraphQL Server - http://localhost:4123/graphql](http://localhost:4123/graphql)
- [Swagger UI - http://localhost:4123/docs](http://localhost:4123/docs)
- [REST API Endpoint - http://localhost:4123/api](http://localhost:4123/api)
## Further Readings
- [Apollo Server](https://www.apollographql.com/docs/apollo-server/)
- [Sofa REST](https://sofa-api.com)
- [Swagger UI](https://github.com/scottie1984/swagger-ui-express)
- [TypeScript](https://www.typescriptlang.org/)