Install Postgres
sudo apt update
sudo apt install postgresql
Configure Postgres
sudo -u postgres psql
CREATE DATABASE summit;
create user summit with encrypted password 'password';
grant all privileges on database summit to summit;
\c summit
grant usage, create on schema public to summit;
\q
Downloading git and setting up the workspace
sudo apt install git
git clone https://github.com/RhykerWells/summit
Add your environment variables to your ~/.profile (these are located within cmd/summit/example-env)
SUMMIT_TOKEN - Your bot token. NOT prefixed with "Bot"
SUMMIT_PGUSERNAME - The user in postgres you created
SUMMIT_PASSWORD - The password you set in postgres
Prefix each variable with export:
export SUMMIT_TOKEN="tokenxxxx"
Building & running the binary
cd cmd/summit
go build
./summit
Update your system and install git
sudo apt update
sudo apt install git
Clone the repository
git clone https://github.com/RhykerWells/summit
cd summit/docker
Copy the environment variable files and edit where applicable
cp app.example, app.env
cp db.example, db.env
Add your docker image to the compose file
docker compose up -d