A (probably not finished) simple link shortener.
Go to file
2024-03-08 11:11:09 +00:00
.gitignore fix: remove mac temp files from repo 2023-07-30 21:09:03 -07:00
dict.json init:: 2023-07-28 22:25:04 -07:00
gdpr.html init:: 2023-07-28 22:25:04 -07:00
go.mod migrate go.mod from old Git server 2024-03-08 11:11:09 +00:00
go.sum deps:: 2023-07-30 21:08:38 -07:00
index.css init:: 2023-07-28 22:25:04 -07:00
index.html init:: 2023-07-28 22:25:04 -07:00
index.js init:: 2023-07-28 22:25:04 -07:00
main.go chore: finish v0.1.0 2023-07-30 21:08:51 -07:00
README.md init:: 2023-07-28 22:25:04 -07:00

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

  1. Start a local Postgres server
  2. Install Golang and create a binary (go build main.go)
  3. 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.