Skip to content

exitcas/envshort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Envshort

A simple private URL shortener powered by Nim.

Demo

Want to see it working? Take a look at our demo.

Install

Getting ready the environment.

  1. Install Nim on your computer.
  2. Install Prologue.

Compile

  1. Execute nim c main.nim on your PC.

Configure

  1. Select if you want to use a JSON file or your environment variables as your database, editing the variable "type" at config.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.
    • 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.

Execute

  1. Execute main.exe if you are on Windows or run main if you are running Linux or Mac.

Support

Need help? Found a bug? Take a look at our issues page!