Skip to content

Commit 287f592

Browse files
authored
Merge pull request #88 from novuhq/todd/versioning-differences
Release 0.4.0 for full compatability to Novu 0.24.0
2 parents 1504222 + 0a47938 commit 287f592

File tree

288 files changed

+52608
-1198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

288 files changed

+52608
-1198
lines changed

.github/workflows/dotnet-deploy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup .NET
2121
uses: actions/setup-dotnet@v3
2222
with:
23-
dotnet-version: 7.0.x
23+
dotnet-version: 8.0.x
2424

2525
# Step Two: build
2626
- name: Build Novu Solution (all projects)

.github/workflows/dotnet-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup .NET
1515
uses: actions/setup-dotnet@v3
1616
with:
17-
dotnet-version: 7.0.x
17+
dotnet-version: 8.0.x
1818

1919
## Restore Novu as a solution
2020
- name: Restore dependencies

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ obj
77
.DS_STORE
88
src/Novu.sln.DotSettings.user
99
**/.vs
10-
appsettings.todd.json
10+
appsettings.todd.json
11+
**/.env
12+
**/refitter/**

CONTRIBUTING.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@ You can open a new issue with this [issue form](https://github.com/novuhq/novu-d
1919

2020
### Requirements
2121

22-
- .NET 7
22+
- .NET 8
2323
- Novu API Key - Can be located at https://web.novu.co/settings
2424

2525
### Setup the project
2626

27-
Clone the repository and run `dotnet restore` against `Novu.sln`
27+
* Clone the repository and run `dotnet restore` against `Novu.sln`
28+
* docker files for local development in docker folder
29+
* difference between versions in specs folder
30+
* autogen contract files for versions in refitter folder
31+
* Start the local docker version of Novu against the version you are reporting/building against
2832

2933
## Missing a Feature?
3034

README.md

+307-38
Large diffs are not rendered by default.

docker/.env.example

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#
2+
# copy this file to .env to be picked up by docker-compose
3+
#
4+
# see https://github.com/novuhq/novu/pkgs/container/novu%2Fapi to find version
5+
IMAGE_VERSION=0.24.4
6+
7+
# Secrets
8+
# YOU MUST CHANGE THESE BEFORE GOING INTO PRODUCTION
9+
JWT_SECRET=<Must be 128 bits (16 chars)>>
10+
STORE_ENCRYPTION_KEY=<ENCRYPTION_KEY_MUST_BE_32_LONG>
11+
12+
# General
13+
NODE_ENV=local
14+
15+
MONGO_PORT=27017
16+
MONGO_MAX_POOL_SIZE=500
17+
18+
FORWARD_MINIO_CONSOLE_PORT=9090
19+
FORWARD_MINIO_PORT=9000
20+
21+
REDIS_PORT=6379
22+
REDIS_CACHE_SERVICE_PORT=6379
23+
REDIS_HOST=redis
24+
REDIS_CACHE_SERVICE_HOST=
25+
REDIS_PASSWORD=
26+
27+
# AWS
28+
AWS_REGION=us-east-1
29+
AWS_ACCESS_KEY_ID=<4_CHARS>
30+
AWS_SECRET_ACCESS_KEY=<7_CHARS>
31+
32+
S3_BUCKET_NAME=local-notifications
33+
S3_REGION=us-east-1
34+
35+
# Novu Ports
36+
API_PORT=3000
37+
WS_PORT=3002
38+
APP_PORT=4200
39+
WIDGET_PORT=4500
40+
WIDGET_EMBED_PORT=4701
41+
42+
DISABLE_USER_REGISTRATION=false
43+
44+
# Context Paths
45+
# Only needed for setups with reverse-proxies
46+
GLOBAL_CONTEXT_PATH=
47+
WEB_CONTEXT_PATH=
48+
API_CONTEXT_PATH=
49+
WS_CONTEXT_PATH=
50+
WIDGET_CONTEXT_PATH=
51+
52+
# Analytics
53+
SENTRY_DSN=
54+
NEW_RELIC_APP_NAME=
55+
NEW_RELIC_LICENSE_KEY=

docker/Readme.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
Docker is used to self-host Novu for testing.
2+
3+
### Before you begin
4+
5+
You need the following installed in your system:
6+
7+
- [Docker](https://docs.docker.com/engine/install/) and [docker-compose](https://docs.docker.com/compose/install/)
8+
9+
### Start Novu
10+
11+
```sh
12+
# Start Novu
13+
docker-compose -f ./docker/docker-compose.yml up
14+
```
15+
16+
### Change settings
17+
18+
The current docker compose file has default settings to work immediately in testing. However, any
19+
can be changed by creating your own `.env` file:
20+
21+
```sh
22+
# Go to the docker folder
23+
cd docker
24+
25+
# Copy the example env file (and make changes, but should work on defaults)
26+
# the version of the Novu docker images are set in the .env file
27+
cp .env.example .env
28+
29+
# Start Novu
30+
docker-compose -f ./docker-compose.yml up
31+
```
32+
33+
### Testing
34+
35+
* The `appsettings.Integration.json` file is pointing at http:localhost:3000
36+
* [http://127.0.0.1:4200](http://127.0.0.1:4200) for the API key on the organisation
37+
38+
```json
39+
{
40+
"Novu": {
41+
"Url": "http://localhost:3000/v1",
42+
"ApiKey": "082f1cdac19663855359343735aae5b1"
43+
}
44+
}
45+
```
46+
47+
### OpenApi
48+
49+
* [http://127.0.0.1:3000/openapi](http://127.0.0.1:3000/openapi)[.json|yaml]

0 commit comments

Comments
 (0)