Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 16, 2021. It is now read-only.

Installation

Max Schmitt edited this pageMar 20, 2019 ·7 revisions

Installation

Docker

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.

Docker Compose

An example docker-compose.yml file is locatedhere.

Prebuilt Binaries

Download the package for your architecture and operating system frombintray and extract it. The tarball contains the binary and the default configuration file. To extract it execute the following command:

tar -xjvf

Building from Source

Requirements:

  • Node.js
  • Yarn
  • Make
  • Golang 1.9+ with correctly setGOPATH 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 ourMakefile which builds the binaries from source. To see the build steps, you can take a look at it.

make

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp