Skip to content

Commit

Permalink
Add feedback api (#123)
Browse files Browse the repository at this point in the history
Adds feedback api as a docker-compose service as well as a dummy smtp server.
  • Loading branch information
JustusFT authored Jan 17, 2023
1 parent a102708 commit 39028b7
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "client/vendor/wormhole-william"]
path = client/vendor/wormhole-william
url = [email protected]:LeastAuthority/wormhole-william.git
[submodule "feedback-api/feedback-api"]
path = feedback-api
url = [email protected]:LeastAuthority/feedback-api.git
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ docker compose run -p 8080:8080 client gulp watch # equivalent command
docker compose logs -f
```

#### Email from Feedback API
We use a dummy SMTP server to log emails sent from `feedback-api`. To view the emails, run the following command:
```sh
docker compose logs -f dummy-smtp-server
```

### Stop development environment

```sh
Expand Down
4 changes: 2 additions & 2 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,33 @@ services:
depends_on:
- mailbox
- relay
- feedback-api
feedback-api:
build: ./feedback-api
command:
[
"/app/feedback-api",
"-to",
"[email protected]",
"-smtp-server",
"dummy-smtp-server",
"-smtp-port",
"1025",
]
ports:
- "8001:8001"
depends_on:
- dummy-smtp-server
environment:
- SMTP_USE_TLS=false
- [email protected]
- SMTP_PASSWORD=barbazquux
dummy-smtp-server:
build: ./feedback-api/docker/smtp-server
ports:
- "1025:1025"
environment:
- PYTHONUNBUFFERED=1
# build to run in CI
client-ci:
build: ./client
Expand Down
1 change: 1 addition & 0 deletions feedback-api
Submodule feedback-api added at 4fdce8

0 comments on commit 39028b7

Please sign in to comment.