Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

TroyKomodo/poll-api

Repository files navigation

PollAPI

  1. Install golang
wget https://golang.org/dl/go1.16.2.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.16.2.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
  1. Clone the repo
cd /opt/
git clone https://github.com/troydota/api.poll.komodohype.dev.git
cd api.poll.komodohype.dev
  1. Build the source
go build
  1. Modify the config.
cp config.demo.yaml config.yaml && vim config.yaml
  1. Setup auto run with systemboot.
sudo cp poll-api.service /etc/systemd/system && sudo systemctl start poll-api && sudo systemctl enable poll-api