This is the repository for the central Hoagie API. It supports authentication using JWT tokens through the Hoagie and CAS system. Currently, it supports the following endpoints:
/mail/send
- sends an email using the Hoagie account to the specified listservs and given email content.
TODO: add more
- First, clone the repository with the following. You will need to setup GitHub SSH keys to successfully run this command.
git clone [email protected]:HoagieClub/api.git
- Run a local MongoDB 6.0 server. Check out installation instructions here.
- Rename
.env.local.txt
file to.env.local
- Get the dependencies with:
go get
- You can now run the server with
go run main.go
That's it! The server can now be accessed with http://localhost:8080
. If there are any issues, you can try running go run main.go reset
to reset the test database.
Create a new branch that describes your task, for example:
git branch -m course-support