Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mahabubx7/graphql-api-kit

ApolloServer (Standalone + TS [esm]) GraphQL API starter kit. Suitable for sub-graph/service starter.
https://github.com/mahabubx7/graphql-api-kit

Last synced: 1 day ago
JSON representation

ApolloServer (Standalone + TS [esm]) GraphQL API starter kit. Suitable for sub-graph/service starter.

Awesome Lists containing this project

README

        

# GraphQL API (service/subgraph) starter kit

> It is a standalone `@apollo/server` nodejs server with TypeScript support and ESM modules.

### Features

I have tried to setup some key features as a starter only.

- TypeScript support
- ESM modules
- GraphQL API server (standalone only mode [Nodejs(ESM) + Apollo])
- GraphQL Playground
- Pre-setup tests for TDD (built-in node.js testing framework)
- Linters for standard coding workflows
- Docker containerization support
- Websocket (subscription) support [coming soon]

### Docker Guides

> Always keep your host address in IPv4 (recommended)
>
> As example: '0.0.0.0' or '127.0.0.1' (as you need)

**Build image & create the container**

```bash
docker build -t

# then

docker run -p 4000:4000 -d --name
```

> You can use `docker-compose` to run the image with `docker-compose.yml` when you are having multiple containers in your project.