Skip to content

Commit

Permalink
Merge pull request #9 from led0nk/readme
Browse files Browse the repository at this point in the history
add readme
  • Loading branch information
led0nk authored May 12, 2024
2 parents 29fa369 + 7914a70 commit 2d71840
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions README.md
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...

Binary file added internal/templates/img/guestbook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2d71840

Please sign in to comment.