Skip to content

Commit 53ee55f

Browse files
authored
chore: use kurrentdb var (#407)
1 parent ba3a2fb commit 53ee55f

File tree

18 files changed

+224
-170
lines changed

18 files changed

+224
-170
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

+80-43
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,97 @@
1-
name: Bug Report
2-
description: Create a bug report to help us improve
1+
name: Bug report
2+
description: Help us improve the client
3+
labels:
4+
- triage
35
body:
4-
- type: markdown
5-
attributes:
6-
value: |
7-
Thanks for taking the time to fill out this bug report!
86
- type: textarea
9-
id: description
7+
id: current-behavior
108
attributes:
11-
label: Bug Description
12-
description: A clear and concise description of what the bug is
13-
placeholder: Tell us what you see!
9+
label: 🐛 Current behavior
10+
description: A clear and concise description of what the bug is.
1411
validations:
15-
required: true
16-
- type: textarea
17-
id: reproduction
18-
attributes:
19-
label: To Reproduce
20-
description: Steps to reproduce the behavior
21-
placeholder: |
22-
1. Start the KurrentDB server
23-
2. Connect the client to the server
24-
3. Create a new stream
25-
4. Append an event to the stream
26-
5. Read the event from the stream
27-
6. Observe the issue
28-
validations:
29-
required: true
12+
required: true
3013
- type: textarea
31-
id: expected
14+
id: reproduction-steps
3215
attributes:
33-
label: Expected behavior
34-
description: A clear and concise description of what you expected to happen
16+
label: 🔍 Steps to reproduce
17+
description: Steps to reproduce the behavior.
18+
placeholder: |
19+
1. Go to ...
20+
2. Click on ...
21+
3. Scroll down to ...
22+
4. See error
23+
24+
You can attach screenshots by dragging and dropping, or selecting and pasting them in the text field.
3525
validations:
36-
required: true
37-
- type: markdown
26+
required: true
27+
- type: input
28+
id: reproduction-links
3829
attributes:
39-
value: '## Environment'
30+
label: Reproducible link
31+
description: A link to a minimal reproducible example. This could be a GitHub repository, CodeSandbox, or any other online code editor.
32+
placeholder: e.g, github.com/company/repo
33+
validations:
34+
required: true
35+
- type: textarea
36+
id: expected-behavior
37+
attributes:
38+
label: 💭 Expected behavior
39+
description: A clear and concise description of what you expected to happen.
40+
validations:
41+
required: true
4042
- type: input
41-
id: db
43+
id: client-version
4244
attributes:
43-
label: KurrentDB Version
44-
placeholder: ex. 24.10.0
45+
label: Package version
46+
description: What version of the client you're experiencing the issue with.
47+
placeholder: e.g., KurrentDB-Client-NodeJS 1.1.2
4548
validations:
46-
required: true
49+
required: true
4750
- type: input
48-
id: client
51+
id: kurrentdb-version
4952
attributes:
50-
label: Client Version
51-
placeholder: ex. 1.0.0
53+
label: KurrentDB Version
54+
description: What version of the database you are using.
55+
placeholder: e.g., KurrentDB v24.10
5256
validations:
53-
required: true
57+
required: true
5458
- type: input
55-
id: nodejs-version
59+
id: connection
5660
attributes:
57-
label: Node.js Version
58-
placeholder: ex. 18.16.0
61+
label: Connection string
62+
description: What connection string you're using. Hide and sensitive information if necessary.
63+
placeholder: e.g., kurrentdb://admin:changeit@localhost:2113
5964
validations:
60-
required: true
65+
required: true
66+
- type: dropdown
67+
id: deployment-environment
68+
attributes:
69+
label: ☁️ Deployment Environment
70+
description: How is KurrentDB deployed?
71+
options:
72+
- Single-node (Docker)
73+
- Single-node (Bare metal/VM)
74+
- Multi-node cluster (On-prem)
75+
- Multi-node cluster (Cloud)
76+
- Managed KurrentDB Cloud
77+
- Other (please specify below)
78+
validations:
79+
required: true
80+
- type: input
81+
id: deployment-other
82+
attributes:
83+
label: Other Deployment Details
84+
description: If you selected "Other," please specify your deployment setup.
85+
placeholder: e.g., Kubernetes with custom networking
86+
- type: input
87+
id: os
88+
attributes:
89+
label: Operating system
90+
placeholder: e.g., macOS 13.1
91+
- type: checkboxes
92+
attributes:
93+
label: Code of Conduct
94+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/algolia/.github/blob/main/CODE_OF_CONDUCT.md).
95+
options:
96+
- label: I agree to follow this project's Code of Conduct
97+
required: true

.github/ISSUE_TEMPLATE/config.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: Feature request
4-
url: https://discuss.kurrent.io/
5-
about: Suggest an idea for this project
6-
- name: Question / Problem
7-
url: https://discuss.kurrent.io/
8-
about: Questions and problems with n8n
3+
- name: Feature Request
4+
url: https://github.com/kurrent-io/KurrentDB-Client-NodeJS/discussions/new?category=ideas&labels=triage&title=Feature%20request%3A%20
5+
about: Request a feature to add to the client
6+
- name: Ask a Question
7+
url: https://github.com/kurrent-io/KurrentDB-Client-NodeJS/discussions/new?category=q-a&labels=triage
8+
about: Ask questions and discuss with other community members.
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
name: "Dispatch"
1+
name: QA
22

33
on:
44
workflow_dispatch:
55
inputs:
6-
version:
7-
description: "Version tag"
6+
image:
7+
description: 'Full image name'
88
required: true
9+
default: 'docker.kurrent.io/kurrent-staging/kurrentdb:ci'
910
type: string
1011

1112
jobs:
1213
test:
1314
name: Test
1415
uses: ./.github/workflows/tests.yml
1516
with:
16-
version: ${{ inputs.version }}
17+
image: ${{ inputs.image }}

.github/workflows/test_LTS.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ on:
66
branches:
77
- master
88
schedule:
9-
- cron: "0 3 * * 0" # Every sunday at 3am UTC.
9+
- cron: '0 0 * * 0' # Run every Sunday at midnight UTC
1010

1111
jobs:
1212
test:
1313
name: Test
1414
uses: ./.github/workflows/tests.yml
1515
with:
16-
version: "latest"
16+
image: ${{ fromJSON(vars.KURRENTDB_DOCKER_IMAGES).lts.fullname }}
17+
secrets: inherit

.github/workflows/test_ee.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches:
77
- master
88
schedule:
9-
- cron: "0 3 * * *" # Every day at 3am UTC.
9+
- cron: '0 0 * * 0' # Run every Sunday at midnight UTC
1010

1111
jobs:
1212
tests:
@@ -54,4 +54,4 @@ jobs:
5454
- name: Run Tests
5555
run: yarn test ${{ matrix.group.path }} --ci --run-in-band --forceExit
5656
env:
57-
KURRENT_IMAGE: eventstore-ee:${{ env.KURRENT_VERSION }}
57+
KURRENT_IMAGE: "docker.eventstore.com/eventstore-ee/eventstoredb-commercial:${{ env.KURRENT_VERSION }}"

.github/workflows/test_next.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ on:
66
branches:
77
- master
88
schedule:
9-
- cron: "0 3 * * *" # Every day at 3am UTC.
9+
- cron: '0 0 * * 0' # Run every Sunday at midnight UTC
1010

1111
jobs:
1212
test:
1313
name: Test
1414
uses: ./.github/workflows/tests.yml
1515
with:
16-
version: "ci"
16+
image: ${{ fromJSON(vars.KURRENTDB_DOCKER_IMAGES).ci.fullname }}
17+
secrets: inherit

.github/workflows/test_previous_LTS.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ on:
66
branches:
77
- master
88
schedule:
9-
- cron: "0 3 * * 0" # Every sunday at 3am UTC.
9+
- cron: '0 0 * * 0' # Run every Sunday at midnight UTC
1010

1111
jobs:
1212
test:
1313
name: Test
1414
uses: ./.github/workflows/tests.yml
1515
with:
16-
version: "previous-lts"
16+
image: ${{ fromJSON(vars.KURRENTDB_DOCKER_IMAGES)['previous-lts'].fullname }}
17+
secrets: inherit

.github/workflows/tests.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: tests workflow
33
on:
44
workflow_call:
55
inputs:
6-
version:
6+
image:
77
required: true
88
type: string
99

@@ -38,6 +38,13 @@ jobs:
3838
steps:
3939
- uses: actions/checkout@v4
4040

41+
- name: Login to Cloudsmith
42+
uses: docker/login-action@v3
43+
with:
44+
registry: docker.kurrent.io
45+
username: ${{ secrets.CLOUDSMITH_CICD_USER }}
46+
password: ${{ secrets.CLOUDSMITH_CICD_TOKEN }}
47+
4148
- uses: actions/setup-node@v4
4249
with:
4350
node-version-file: .github/files/.nvmrc
@@ -57,4 +64,4 @@ jobs:
5764
- name: Run Tests
5865
run: yarn test ${{ matrix.group.path }} --ci --run-in-band --forceExit
5966
env:
60-
KURRENT_IMAGE: eventstore-ce:${{ inputs.version }}
67+
KURRENT_IMAGE: ${{ inputs.image }}

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Development is done on the `master` branch. We attempt to do our best to ensure
55
## Initial Setup
66

77
**Prerequisites:**
8-
- Node.js (version 14 or higher, although version 12.18.3 is also supported)
8+
- Node.js (version 20 or higher)
99

1010
**Repository Setup:**
1111
1. Clone the repository:

README.md

+31-19
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@
88

99
# KurrentDB NodeJS Client
1010

11-
[![license][license-badge]][license-badge-url]
1211
[![Previous LTS](https://github.com/kurrent-io/KurrentDB-Client-NodeJS/actions/workflows/test_previous_LTS.yml/badge.svg)](https://github.com/kurrent-io/KurrentDB-Client-NodeJS/actions/workflows/test_previous_LTS.yml)
1312
[![LTS](https://github.com/kurrent-io/KurrentDB-Client-NodeJS/actions/workflows/test_LTS.yml/badge.svg)](https://github.com/kurrent-io/KurrentDB-Client-NodeJS/actions/workflows/test_LTS.yml)
1413
[![next](https://github.com/kurrent-io/KurrentDB-Client-NodeJS/actions/workflows/test_next.yml/badge.svg)](https://github.com/kurrent-io/KurrentDB-Client-NodeJS/actions/workflows/test_next.yml)
1514

16-
KurrentDB is the event-native database, where business events are immutably
17-
stored and streamed. Designed for event-sourced, event-driven, and microservices
18-
architectures.
15+
KurrentDB is a database that's engineered for modern software applications and event-driven architectures. Its
16+
event-native design simplifies data modeling and preserves data integrity while the integrated streaming engine solves
17+
distributed messaging challenges and ensures data consistency.
18+
19+
### Documentation
20+
21+
* [API Reference](https://pkg.go.dev/github.com/kurrent.io/KurrentDB-Client-Go?tab=doc)
22+
* [Samples](https://github.com/kurrent-io/KurrentDB-Client-NodeJS/tree/master/samples)
1923

2024
## Packages
2125

@@ -30,24 +34,32 @@ This monorepo contains the following packages:
3034
The client uses [KurrentDB-Bridge-Client](https://github.com/kurrent-io/EventStore-Client-NodeJS)
3135
to significantly improve read performance by leveraging Rust through native addons.
3236

33-
## Support
34-
35-
Information on support can be found on our website: [Kurrent Support]
36-
3737
## Communities
3838

39-
- [Discuss]
40-
- [Discord (Kurrent)][discord-kurrent]
41-
- [Discord (ddd-cqrs-es)][discord-ddd-cqrs-es]
39+
[Join our global community](https://www.kurrent.io/community) of developers.
40+
41+
- [Discuss](https://discuss.kurrent.io/)
42+
- [Discord (Kurrent)](https://discord.gg/Phn9pmCw3t)
43+
- [Discord (ddd-cqrs-es)](https://discord.com/invite/sEZGSHNNbH)
4244

4345
## Contributing
4446

45-
Refer to our [Contribution Guidelines]
47+
Development is done on the `master` branch.
48+
We attempt to do our best to ensure that the history remains clean and to do so, we generally ask contributors to squash
49+
their commits into a set or single logical commit.
50+
51+
- [Create an issue](https://github.com/kurrent-io/KurrentDB-Client-NodeJS/issues)
52+
- [Documentation](https://docs.kurrent.io/)
53+
- [Contributing guide](https://github.com/kurrent-io/KurrentDB-Client-NodeJS/blob/master/CONTRIBUTING.md)
54+
55+
## Building the client
56+
57+
The client is built using the [NodeJS](https://nodejs.org/) JavaScript runtime. To build the client, you need to have Node
58+
installed on your machine. You can download it from the official NodeJS website.
59+
Once you have it installed, you can build the client by running the following command in the root directory of the
60+
project:
4661

47-
[Kurrent support]: https://kurrent.io/support/
48-
[discuss]: https://discuss.kurrent.io/
49-
[discord-kurrent]: https://discord.gg/Phn9pmCw3t
50-
[discord-ddd-cqrs-es]: https://discord.com/invite/sEZGSHNNbH
51-
[license-badge]: https://img.shields.io/npm/l/@kurrent/kurrentdb-client.svg
52-
[license-badge-url]: https://github.com/kurrent-io/KurrentDB-Client-NodeJS/blob/master/LICENSE
53-
[contribution guidelines]: https://github.com/kurrent-io/KurrentDB-Client-NodeJS/blob/master/CONTRIBUTING.md
62+
```bash
63+
yarn install
64+
yarn build
65+
```

0 commit comments

Comments
 (0)