This is the server for the museum scanner project.
- Clone the repository.
- Run
go get
to install dependencies. - Run
go build .
to build the server orair
to run the server in development mode. - Run
./scanner-server
to start the server.
- GET
/
Shows the home page + input for tag ID. - GET
/?id={tag_id}
Shows the tag page for the given tag ID. - POST
/scan
Acceptstag_id
andlocation_id
in the request body. Saves the scan event to the database. - GET
/export
Generates and exports HTML files for all tags in the database. Each file contains generated content unique to the tag.