Development
Dette indhold er ikke tilgængeligt i dit sprog endnu.
Installation
Cloning the repo
You can clone this repo with either of the following commands:
git clone git@github.com:kevinanielsen/go-fast-cdn
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.
make prep # install dependenciesmake 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
go build .
Running
Running the binary
Your binary should now be built and you can run it with one of the following commands, depending on your system:
.\bin\go-fast-cdn-windows
/bin/go-fast-cdn-darwin
/bin/go-fast-cdn-linux
Running with live reload
For faster development cycles, you can also run the project with air.
make prep # if you haven't alreadymake dev # runs with live reload
Now try and make changes to the code, and immediately see it reflected in the browser.