/url-shortener

transform longer URLs into manageable, meaning full, easy to remember short links

Primary LanguagePython

URL-Shortener

  • transform longer URLs into manageable, meaning full, easy to remember short links

Configure url mappings

  • Update url_mapping.regex and nicknames.json file inside config folder.

To avoid Server IP address in the URL, Add the below entry in the host file.

For Windows machine:
  1. Open C:\Windows\System32\Drivers\etc\hosts file in the editor as an admin.
  2. Append the below content in the file. Update SERVER_IP_ADDRESS with the actual Server address
# URL Shortener
SERVER_IP_ADDRESS go
  1. Save the file.

Start Dev Server

  1. First install python packages.
RUN pip install -r requirements.txt
  1. Start dev server
python app/app.py

Usage

Note: Users have to write http:// prefix only if the direct go/j/PROJ1-110 URL is not working, otherwise there is no need to write http:// prefix every time.