Before running ensure go is installed:
Built on:
- Go go1.22.3
- Postgresql DB
- Redis
- Clone the repository or download the zip file directly.
- Create a .env file that contains variables need to run app (see .env.example)
To run the app locally follow these steps:
- Open a terminal or command prompt.
- npm install
- Run the following command:
export ENV=development
go run main.go
To run the app in docker, follow these steps:
- docker build -t discordbot .
- docker run -d --name {name} --env-file {env file} discordbot