This repository has been archived by the owner on Mar 16, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 84
Installation
Max Schmitt edited this page Mar 20, 2019
·
7 revisions
docker run -d -p 8080:8080 \
-e GUS_BASE_URL='https://so.sh0rt.cat' \
-e GUS_GOOGLE_CLIENT_ID='Your ClientID' \
-e GUS_GOOGLE_CLIENT_SECRET='Your ClientSecret' mxschmitt/golang_url_shortener
For more information check out the docker-compose.yml.
An example docker-compose.yml file is located here.
Download the package for your architecture and operating system from bintray and extract it. The tarball contains the binary and the default configuration file. To extract it execute the following command:
tar -xjvf
Requirements:
- Node.js
- Yarn
- Make
- Golang 1.9+ with correctly set
GOPATH
andGOPATH/bin
to thePATH
environment variable
Start by getting the repository:
go get -d github.com/mxschmitt/golang-url-shortener
cd $GOPATH/src/github.com/mxschmitt/golang-url-shortener
Now we can execute our Makefile which builds the binaries from source. To see the build steps, you can take a look at it.
make