Running the Server
How to run the server in a local environment.
Create the .env
A .env with AI keys and database credentials can be made available from any of the team members.
AI Keys Setup
The current version is using Google's Gemini AI. An API key can be generated here. In the .env file in the server directory copy the key following this format not including the brackets.
GEMINI_API_KEY=<YOUR KEY HERE>
Database Setup
The database that is in use is Supabase. In the dashboard for a created project under "Project Settings/Data API". From this dashboard copy the project url, anon/public key, and the service_role/secret key and place them in the .env file using the format in the .env.example file.
Install the Dependencies
Golang
The server uses Golang and the version we used was 1.24.6. Download Go Here.
Install Air(Optional)
Air provides live reloading so it can be helpful to have when developing.
go install github.com/air-verse/air@latest
Then in the root directory of the project run the "air" command If it does not work make sure the Go bin is in your path.
Running the program
go run cmd/server/main.go
or
air
Running Tests
TODO