Deployed version of app could be found here: https://golang-test-task.herokuapp.com/.
Guide was created on Ubuntu 21.10 - based operating system. For this reason there may be some sufficient differences in local deployment process on another OS such as Windows or MacOS.
- Install Golang
Instruction for Golang installation could be found on this page: https://go.dev/doc/install.
- Clone this repository on your computer
git clone git@github.com:nikiandr/golang-test-task.git
or
git clone https://github.com/nikiandr/golang-test-task.git
- Open project directory
cd golang-test-task/
- Set PORT environment variable
In this guide we will set PORT to 8080. You can set it to whatever port you like and have opened.
export PORT="8080"
- Build project
go build cmd/main.go
- Run executable file
./main
- Open application
For this you should open your browser on http://localhost:8080
- FIN