Followed along with this article. Http server seems to work well. It's using a package called chi to handle the routing, but we could also use that one Jack found called Fiber as a framework. It looks like there's a bit of mixed opinion on what's better, but chi seemed to be a little more favored/ be more lightweight.
I think this structure is probably the most useful thing from this should be able to pretty much mimic what we do in scylla rn, it would probably make sense to move the router stuff into main.go though.
Looks like we could drop in socketio as well, will probably take some more thought to see how we can mimic what Peyton did with the proxy client/server stuff
Checklist
It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.
[ ] All commits are tagged with the ticket number
[ ] No linting errors / newline at end of file warnings
[ ] All code follows repository-configured prettier formatting
[ ] No merge conflicts
[ ] All checks passing
[ ] Screenshots of UI changes (see Screenshots section)
[ ] Remove any non-applicable sections of this template
[ ] Assign the PR to yourself
[ ] No package-lock.json changes (unless dependencies have changed)
[ ] Request reviewers & ping on Slack
[ ] PR is linked to the ticket (fill in the closes line below)
Changes
Got bored in class, sorry if this is a lot.
Followed along with this article. Http server seems to work well. It's using a package called chi to handle the routing, but we could also use that one Jack found called Fiber as a framework. It looks like there's a bit of mixed opinion on what's better, but chi seemed to be a little more favored/ be more lightweight.
I think this structure is probably the most useful thing from this should be able to pretty much mimic what we do in scylla rn, it would probably make sense to move the router stuff into main.go though.
Looks like we could drop in socketio as well, will probably take some more thought to see how we can mimic what Peyton did with the proxy client/server stuff
Checklist
It can be helpful to check the
Checks
andFiles changed
tabs. Please review the contributor guide and reach out to your Tech Lead if anything is unclear. Please request reviewers and ping on slack only after you've gone through this whole checklist.package-lock.json
changes (unless dependencies have changed)Closes # (issue #)