Simple url shortener service written in Golang.
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.
- Clone the repository:
git clone https://github.com/zenorachi/url-shortener
- 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)
- Compile and run the project:
make