Skip to content

HoagieClub/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hoagie API Server

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

Local Development

  1. 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
  1. Run a local MongoDB 6.0 server. Check out installation instructions here.
  2. Rename .env.local.txt file to .env.local
  3. Get the dependencies with:
go get
  1. 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.

Branches

Create a new branch that describes your task, for example:

git branch -m course-support

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8

Languages