Enabled anonymous tutorials; UX improved
I ran across someone on LinkedIn doing the same thing I am, but for Flutter. Looks nice, but the VM doesn't seem to work at the moment. I left a comment if they want to exchange experiences, I'd be glad to help.
Let's make it this week's goal to allow for unauthorized tutorials.
To do this, I'll have to make some tweaks with how I manage the environments. A few challenges:
- what do I use as a username for anonymous users?
- how do I make sure they reuse environments when they refresh?
- how do I clean up inactive anon user environments?
Seems like Supabase supports anonymous auth. This should make things easier.
That was much easier than I anticipated. The tests can now be run by anonymous users, and sessions are persisted in users' browsers. I'm not handling merging accounts once they log in, and I don't have any barriers blocking anon users from any features, but I'll add those once there are features to features to block and progress to save (lol). I'll also probably only allow certain simple tutorials with extremely limited environments for anon users.
So the only thing left is cleaning up inactive environments, but I'll do that manually for now.
I'll bind the extensions directory to the host so the containers don't download the extension every time. That should also improve the UX.
This seems to work locally so I'll deploy it and see what happens tomorrow.
If this works, I can finally focus on making more content and marketing.