https://github.com/fredericobormann/dryck
simple web app to keep track of drinks taken by different people in a shared space
https://github.com/fredericobormann/dryck
gin-gonic golang gorm-orm materializecss
Last synced: 6 days ago
JSON representation
simple web app to keep track of drinks taken by different people in a shared space
- Host: GitHub
- URL: https://github.com/fredericobormann/dryck
- Owner: fredericobormann
- License: mit
- Created: 2020-07-19T16:58:18.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-05T02:34:15.000Z (about 3 years ago)
- Last Synced: 2025-03-18T01:27:39.132Z (over 1 year ago)
- Topics: gin-gonic, golang, gorm-orm, materializecss
- Language: Go
- Homepage:
- Size: 168 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dryck
[](https://travis-ci.com/fredericobormann/dryck)
[](https://goreportcard.com/report/github.com/fredericobormann/dryck)
dryck is a very simple web app written in Go using Gin to keep track of the amount of drinks taken by different people in a shared space.
At the moment it doesn't support user authentication, so you should trust everyone who has access to it.
If you set the environment variable `HTTP_PASSWORD`, you can limit the access in a very simple way with HTTP Basic Auth (username: dryck).
If `HTTP_PASSWORD` is not set, dryck won't require authentication.
Also adding new drinks is only possible by editing the underlying Postgres database directly.
## Installation
The simplest way to start the application is by using docker compose.
1. Install docker and docker compose.
2. Create a `docker-compose.yml` with the following content and change the variables according to your needs:
```yaml
version: '2.0'
services:
web:
image: fredericobormann/dryck
restart: always
environment:
POSTGRES_HOST: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_DATABASE: postgres
GIN_MODE: release
HTTP_PASSWORD: mysecretpassword
JWT_SECRET: changethisinproduction
ports:
- "8089:8080"
depends_on:
- postgres
postgres:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: mysecretpassword
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
volumes:
db-data:
driver: local
```
3. Then start everything by
```
docker-compose up -d
```