DEV Community

Discussion on: Need help on creating private instances of a web app

Collapse
 
coreyja profile image
Corey Alexander

So I don't know if any tools/frameworks exist for this but it sounds doable enough to roll your own!

Assuming you have a web app that can receive requests and some kind of data database (or other data store), I think it might be something like this.

Create a todo-list model (or add a column to your existing model) that can store some kind of UUID private identifier. Since this would be a UUID, it should be unique to every record, and private for this use case.
Then generate a link with that UUID, maybe something like mytodolistapp.com/todos/:UUID:
that looks up the correct todo list by that UUID. Then this page would be responsible for editing the ToDo list. Importantly this page should NOT authenticate the User, as you want them to have access without logging in.

Basically I think you need some sort of secret random identifier that can be used to look up the todo list. Then Users can distribute this identifier and anyone who knows the id can edit the list!

Hope this helps!

Collapse
 
itskitto profile image
Kitto Khrangtong

Awesome, this did help quite a bit! It definitely helped me conceptualize some things in my mind.