https://github.com/cicovic-andrija/mydives
Dive log data and hypermedia server
https://github.com/cicovic-andrija/mydives
diving go hypermedia webserver
Last synced: 3 months ago
JSON representation
Dive log data and hypermedia server
- Host: GitHub
- URL: https://github.com/cicovic-andrija/mydives
- Owner: cicovic-andrija
- Created: 2024-10-03T13:53:06.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2025-02-05T09:47:48.000Z (4 months ago)
- Last Synced: 2025-02-05T10:36:08.835Z (4 months ago)
- Topics: diving, go, hypermedia, webserver
- Language: Go
- Homepage: https://divelog.acicovic.me
- Size: 331 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MyDives
## Build
```bash
go build -o mydivesrv main.go
```## Development
```bash
DIVELOG_MODE="dev" DIVELOG_DBFILE_PATH="/path/to/subsurfacedata.xml" go run main.go
```## Production
```bash
DIVELOG_MODE="prod" \
DIVELOG_DBFILE_PATH="/path/to/subsurfacedata.xml" \
DIVELOG_IP_HOST="0.0.0.0" \
DIVELOG_PORT="443" \
DIVELOG_PRIVATE_KEY_PATH="/path/to/privkey" \
DIVELOG_CERT_PATH="/path/to/pubcert" \
./mydivesrv
```## Production (Behind a Reverse Proxy)
```bash
DIVELOG_MODE="prod-proxy-http" \
DIVELOG_DBFILE_PATH="/path/to/subsurfacedata.xml" \
DIVELOG_IP_HOST="127.0.0.1" \
DIVELOG_PORT="52000" \
./mydivesrv
```## Kill
```bash
pkill -SIGINT mydivesrv
```