I have configured this code so it can easily run on Replit.
Just click the button below, and follow the instructions.
Remember to follow the rest of the Organizer Handbook afterwards.
QR Mixer Game can be hosted on your own website. The easiest way to do this is to host it on some cloud provider like Google Cloud or Amazon AWS. Once you're logged in to your server, do the following:
- Install Go
- Prepare to install SQLite. The go version of the sqlite driver is a CGO enabled package, so it needs the following steps:
set CGO_ENABLED=1
- Make sure gcc is on your path. On Linux you don't need to do anything. On Windows, where having gcc in the path is uncommon, you may have to install the 64-bit gcc from a source like tdm-gcc.
- Clone this repo
- Run
go build
- This should automatically fetch all go dependencies, including sqlite, and compile the code
- Optionally, you can also run
go test ./...
to check if everything is working fine.
- Run
qr-mixer-game –port=80
- Verify that the site is working by visiting http://localhost.
- This game must be served using https, because of its use of the camera API. An easy way to do that is to set up cloudflare for your site and force HTTPS. Alternatively, you can use Let's Encrypt, or any other method to set up SSL.
For reliability, you should set up this game as a service. If you use this same server for other websites also, then set up a reverse proxy to it.
Note that this site has no authentication. There are no passwords whatsoever, so make sure you're not expecting any security or authentication here, for any of the data.
- Next page: Setting up your questions