-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from led0nk/readme
add readme
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Guestbook | ||
|
||
Welcome to the Guestbook! The Guestbook is designed to manage guestbook-entries for events e.g. a wedding or a birthday-party. | ||
The application is mainly written in [Go](https://go.dev/), instrumented via [OpenTelemetry](https://opentelemetry.io/) and presented by the [Grafana-LGTM-Stack](https://github.com/grafana/docker-otel-lgtm) for improved observability. | ||
|
||
![guestbook.png](https://github.com/led0nk/guestbook/blob/main/internal/templates/img/guestbook.png) | ||
|
||
## Get started | ||
|
||
You can easily get started via docker: | ||
```shell | ||
docker run -it -p 8080:8080 --rm ghcr.io/led0nk/guestbook:latest | ||
``` | ||
|
||
|
||
## Appliable flags: | ||
|
||
| flag | default | function | | ||
| ----------- | ---------------- | --------------------------------- | | ||
| `-addr` | `localhost:8080` | server address | | ||
| `-grpcaddr` | <nil> | grpc address, e.g. localhost:4317 | | ||
| `-db` | `file://testdata` | path to database | | ||
| `-env` | `testdata/.env` | path to .env-file | | ||
| `-domain` | `127.0.0.1` | given domain for cookies/mail | | ||
| `-loglevel` | `INFO` | define the level for logs | | ||
|
||
## Configuration | ||
|
||
In order to provide the guestbook with a working authentication system, which uses E-Mail validation, you need to pre-configure some variables in `.env`. | ||
It should at least contain the following: | ||
```dotenv | ||
TOKENSECRET="yoursecretofchoice" | ||
EMAIL="[email protected]" | ||
SMTPPW="dontforgettosetupyoursmtppw" | ||
HOST="smtp.domain.com" | ||
PORT="587" | ||
``` | ||
|
||
**Remember:** You have to set up your smtp-password for your email-provider. | ||
|
||
## Important | ||
|
||
The application should be defined as "pre-alpha" due to the lack of frontend-variation and code quality. | ||
There is much room for improvement e.g. creating multiple account-validation methods, reworking some frontend parts, writing more efficient code and many more... | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.