Skip to content

Development

Installation

Cloning the repo

You can clone this repo with either of the following commands:

SSH
git clone git@github.com:kevinanielsen/go-fast-cdn
HTTPS
git clone https://github.com:kevinanielsen/go-fast-cdn

Setting up the project

This project uses dotenv and you can access the .env.example here. You can go ahead and copy that, and insert it into your .env file.

Building

This project uses a makefile, and you can use that to build the binaries.

Terminal window
make prep # install dependencies
make clean # clean the output files (don't use if first time building)
make build # build the binaries

This will cross-compile to windows, darwin, and linux binaries, so make sure that you have the compilers installed on your machine if you run make build. If you don’t have the compiler installed, instead run

Terminal window
go build .

Running

Your binary should now be built and you can run it with one of the following commands, depending on your system:

Windows
.\bin\go-fast-cdn-windows
MacOS
/bin/go-fast-cdn-darwin
Linux
/bin/go-fast-cdn-linux