.gitignore | ||
dict.json | ||
gdpr.html | ||
go.mod | ||
go.sum | ||
index.css | ||
index.html | ||
index.js | ||
main.go | ||
README.md |
Mijikai
Mijikai is a very simple link shortener that uses a word bank to create a random 5 word string that is easy for someone to type and delineated by hyphens. The current dictionary has 2385 words, which means there are more than 76 quadrillion permutations ((2385!)/((2385-5)!)
) – the odds of someone running out of possible links is next to none.
Building
- Start a local Postgres server
- Install Golang and create a binary (
go build main.go
) - Run the binary with the following environment variables set :
DB_USER
,DB_PASS
,DB_NAME
,DB_URL
When deploying Mijikai in production, you should use a Docker container – a Dockerfile and Compose file are both in the root of the directory.