Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 870 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 870 Bytes

Nation i Lund, API

Source code for the api that backs nationilund.se.

Built with the Gin Framework.

Go 1.8 is required for dependency adriangoransson/studentlund to run.

Build and run

In project root:

go build          # Builds the project and creates a binary in the same folder
./nationilund-api # Runs on port 8080 or env $PORT

Deployed with Apex up. Configuration in up.json.

Reminder to self about up: Never delete the stack unless necessary. Update up.json and run stack plan/apply. If the stack is deleted, reroute dns entries pointing to cloudfront or the custom domain won't work. Actually, just remove the custom domain completely, deploy and then re-add and run stack plan/apply.