A simple private URL shortener powered by Nim.
Want to see it working? Take a look at our demo.
- Execute
nim c main.nim
on your PC.
- Select if you want to use a JSON file or your environment variables as your database, editing the variable "
type
" atconfig.json
.- Option 0 => JSON file
- Edit
config.json
. - Add keys to
urls
. The name will be the path and the content will be the address it will redirect to.
- Edit
- Option 1 => Environment variables
- Take as a base
.env
. - Create URLs creating variables starting with "
url_
", followed by the desired path. The value will be the address it will redirect to.
- Take as a base
- Option 0 => JSON file
- Execute
main.exe
if you are on Windows or runmain
if you are running Linux or Mac.
Need help? Found a bug? Take a look at our issues page!