pgast / dash-tabs

QR based order management tool for food businesses. Complete with backend implementation, database and user authorization.
http://www.dashtabs.surge.sh
MIT License
6 stars 3 forks source link

I wanted to try your project but cant run it #1

Open SwapCursor opened 4 years ago

SwapCursor commented 4 years ago

Thanks looks clean and nice your project and wanted to try it but I get this error: npm-install-go-nuts-in-this-vscode-project-please-advice

Please advice!

SwapCursor commented 4 years ago

Found the problem just needed the latest "firebase": "^7.23.0". I wanted to see and learn how you handled the anonymous sign. This looks doable I will try it in my codebase. If you have som updated version of this Google Firebase sign in anonymous please share-

pgast commented 4 years ago

Hi! the problem I was encountering with my anonymous sign in demo feature is that I had to generate data in the firebase db. After looking for solutions in how to automatically delete data in firebase my solution boiled down to timestamps. Each anonymous sign in generates some data in the db with its timestamp. Each time a user or anonymous user logs in, a function searches for current data that its past the timestamp limit and then erases it.

Regarding deleting anonymous users, i still havent been able to figure that out. Since this is more of a personal project for my portfolio, I dont mind deleting anonymous accounts manually.

Thanks for checking out my project!

SwapCursor commented 4 years ago

Thanks learn so much from your code. I came to same problem about the anonymous accounts keep building up over time. I will keep them for X amount of time as you also suggest and then delete them. My Anonymous users (UID) can interact with Firestore so if they come back the anonymous account will be reused(maybe user sign in using Google e.g.)