Webring Thingy banner

Webring Thingy

6 devlogs
14h 26m 2s

I will hopefully make my own webring with a simple API and an Admin UI

rmamet

To take a break from the auth system, i quickly read the wiki on Build Scripts, and let it show the git commit hash on a GET request of / :3

Attachment
0
rmamet

Add auth system! Has a JWT system to verify the user, with expirations. Token is required to add/remove websites from the ring. The passwords are hashed with argon2, and validation can be seen in the screenshot :D

(That was complex, and I genuinely thought I did a devlog for this before, but apparently not)

Attachment
0
rmamet

I set up an endpoint (/ring) to add and remove websites from webring using POST and DELETE headers. Its all saved in a json file, alongside the config. I also made sure to double check if the specific website is on the ring yet when trying to add or delete a ring (to prevent accidental confirmations that I almost forgot about)

0
rmamet

Whoopsies! almost forgor im supposed to do dev logs!

Changes:

  • Made rouille output a json response
  • Added routing
  • added a customizable config

Next steps (maybe?)

  • Make a list of websites on the ring
  • Add endpoint to add/remove websites (somehow restrict with token?)
  • Make at least a homepage
  • Application portal?
Attachment
0
rmamet

okay cool! this is technically my first ever rust project, but I have made a few rust pull requests so it isn’t complete basics!

I found a library (rouille) that makes it easier to host an HTTP server, and made a simple thing that just shows text.

This is cool, trust me :3
uhh yeah :3

Attachment
0