Skip to content

zenorachi/url-shortener

Repository files navigation

Url Shortener

Simple url shortener service written in Golang.

Technologies used:


Getting started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these example steps.

Installation

  1. Clone the repository:
git clone https://github.com/zenorachi/url-shortener
  1. Setup environment variables (create .env file in the project's root):
export REDIS_HOST=
export REDIS_PORT=
export REDIS_PASSWORD=
export REDIS_INDEX=

Note: if you build the project using Docker, setup DB_HOST=redis (as the container name)

  1. Compile and run the project:
make