Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 32d556d

Browse files
author
Enda Phelan
committed
feat(templates): add kafka template
1 parent 3959876 commit 32d556d

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

packages/create-graphback/src/init/starterTemplates.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ export const allTemplates: Template[] = [
103103
}]
104104
},
105105
{
106-
name: 'apollo-mongo-apache-kafka-server-ts',
107-
description: 'Apollo GraphQL server connecting to MongoDB database with Apache Kafka for subscriptions',
106+
name: '[PREVIEW] apollo-mongo-apache-kafka-server-ts',
107+
description: 'Apollo GraphQL server connecting to MongoDB database with Apache Kafka for subscriptions. This is a preview template - we are continuing to enhance it - we welcome your feedback.',
108108
repos: [{
109109
uri: 'https://github.com/aerogear/graphback',
110110
branch: 'templates-1.0.0',

templates/ts-apollo-mongo-apache-kafka-backend/README.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
11
## Graphback MongoDB + Apollo Server with Apache Kafka Template
22

3-
A template that provides you with an easy setup for your application's backend using MongoDB and Apollo server with TypeScript, and Apache Kafka for GraphQL subscriptions.
3+
> NOTE: This is a preview template - we are continuing to enhance it - we welcome your feedback.
4+
5+
A template that provides you with an easy setup for your application's backend using MongoDB and Apollo server with TypeScript, and Apache Kafka for GraphQL Subscriptions.
46

57
### Quickstart Guide
68

79
The project has been created using Graphback. Run the project using the following steps:
810

9-
- Start the database
10-
11-
```shell
12-
HOST_IP=your-host-ip-address && docker-compose up -d
13-
```
14-
15-
> HOST_IP is the ipv4 address of your machine.
16-
17-
You can use the helper script to set `HOST_IP`:
11+
- Start the database, Apache Kafka and Zookeeper
1812

1913
```shell
20-
./set-host-ip.sh && docker-compose up -d
14+
docker-compose up -d
2115
```
2216

2317
- Inspect your schema in the `model/datamodel.graphql` file.

templates/ts-apollo-mongo-apache-kafka-backend/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ services:
1414
- zookeeper
1515
environment:
1616
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
17-
KAFKA_ADVERTISED_HOST_NAME: ${HOST_IP}
17+
KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1
1818
volumes:
1919
- /var/run/docker.sock:/var/run/docker.sock
2020

0 commit comments

Comments
 (0)