Golang Web server to draw cards from The Tarot of the Silicon Dawn https://silicon-dawn.cards
您最多能選擇 25 個主題 主題必須以字母或數字為開頭,可包含連接號 ('-') 且最長為 35 個字。
 
 
 
 
Amelia A 32ee57126f
Add k8s notes
2 個月前
cmd Merge remote-tracking branch 'origin/main' into master 5 個月前
templates Works! 8 個月前
vendor Fix my broken merge 5 個月前
.dockerignore No more drive build 8 個月前
.gitignore Bring makefiles into this 8 個月前
.tool-versions Update deps, move to go 1.15 5 個月前
Dockerfile docker go 1.15 5 個月前
Doing-k8s.md Add k8s notes 2 個月前
LICENSE It is a repo 8 個月前
Makefile docker go 1.15 5 個月前
README.md Simplify everything (#1) 8 個月前
cards.go Merge remote-tracking branch 'origin/main' into master 5 個月前
cards_test.go Merge remote-tracking branch 'origin/main' into master 5 個月前
check-docker.http Add request logging to app 5 個月前
check-k8s.http Try out k8s for deploy 8 個月前
check-local.http Simplify everything (#1) 8 個月前
docker-compose.override.yml Update testing a lot 7 個月前
docker-compose.yml Update testing a lot 7 個月前
go.mod Fix my broken merge 5 個月前
go.sum Fix my broken merge 5 個月前
server.go Fix my broken merge 5 個月前
web.yml Try out k8s for deploy 8 個月前

README.md

Silicon Dawn

I made this so I can pull random cards on my phone and review the text.

I originally designed this for use in Pythonista Then I rewrote it in rust to be a web app. Then I got very tired of compiling rust. I wanted to take it to the NEXT LEVEL and rewrite it in golang and stuff it in a docker container.

Instructions

Docker

I publish the docker container at DockerHub. It is fully self-contained and uses port 3200 internally.

You can spin up a copy however you choose to do a docker or use my compose files in /compose

Go Binary

  1. Install golang
  2. Check out this repository wherever you choose
  3. go build -o bin/silicon-dawn cmd/silicon-dawn
  4. ./bin/silicon-dawn get to hydrate the cards data directory
  5. ./bin/silicon-dawn serve to start the webserver
  6. Browse to http://localhost:3200 to enjoy your pick
  7. Refresh the page for a fresh pick

Or! if you are super lazy check out my hosted copy of this.