Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sasmita07/poc-apollo-v4-graphql
POC on graphql modules with apollo server
https://github.com/sasmita07/poc-apollo-v4-graphql
apollo-server apollographql graphql graphql-api graphql-modules graphqlcodegen nodejs typescript
Last synced: 3 months ago
JSON representation
POC on graphql modules with apollo server
- Host: GitHub
- URL: https://github.com/sasmita07/poc-apollo-v4-graphql
- Owner: Sasmita07
- Created: 2024-01-07T12:02:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-28T03:40:59.000Z (8 months ago)
- Last Synced: 2024-10-11T13:03:41.280Z (3 months ago)
- Topics: apollo-server, apollographql, graphql, graphql-api, graphql-modules, graphqlcodegen, nodejs, typescript
- Language: TypeScript
- Homepage: https://the-guild.dev/graphql/modules/docs
- Size: 179 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# poc-apollo-v4-graphql
# GraphQL Modules with Apollo Server v4 example
The purpose if this repo is to demonstrate how to implement a GraphQL Modules API with the following tech stack:
- [GraphQL Modules](https://the-guild.dev/graphql/modules/docs)
- [Apollo Server](https://www.apollographql.com/docs/apollo-server/)
- [TypeScript](https://www.typescriptlang.org/)
- [Codegen](https://the-guild.dev/graphql/codegen/docs/guides/graphql-modules)It contains below folder structure:
| File or Folder | Purpose |
| ------------------ | ---------------------------------- |
| `src/modules` | graphQL modules |
| `src/integrations` | fetching from datasorce |
| `package.json` | project metadata and configuration |
| `readme.md` | this getting started guide |## Running Locally
- Install node modules in root folder `npm install`
- Run `npm run start` to start app
- Run app in the browser which is usually `http://localhost:4000`## GraphQL Code-Generator
- GraphQL Code-Generator which helps you create types (and more) based on your GraphQL schema using graphql-modules-preset and typescript-resolvers
- Add codegen.ts in the root folder. Follow the config setup.
- Run `npm run graphql-types-generate` to generate types