Donut app for Slack clone.
- Install Go
- Install dependencies:
go mod tidy
- Create .env file:
cp .env.example .env
- Insert variables into .env file
- Apply environment variables:
set -a && source .env && set +a
- Run:
go run main.go
If you want to test/debug, run: RESET=1 MOCK=1 go run main.go
This will reset the database on startup and mock users as defined in mock.go.