Closed vincentsarago closed 8 years ago
I've started to deploy a postgres server on AWS RDS !
The more and more I'm working on that, the more question I have :-( Today thinking is:
On person added/register to an event in the database, then someone (or himself) make a modification to the event... what now?
I feel the best way to handle everything will be to create account (but I really don't want to do that)
I think the notification email would be the best of the two options, especially as you already have the functionality for users to receive emails.
Depending on your long-term goals for Disasterwatch, adding user accounts are probably not necessary at this stage. As far as I can see, the only benefit to user accounts would be to:
@CodeMacabre in my last commit I've added the new database API (mongoDB) I'm going to work on the Emailing function and see how things work together
I agree with you about not adding account, I see disasterwatch like an open space with self moderation.
Summary: I've chosen to use MongoDB on mlab (https://mlab.com) as there is a free db hosting plan. the db is not replicated so it might not be the safer plan, but this is just for testing!
I'm using aws lambda for the CRUD operations disasterwatch-lambda
6 methods are defined now :
As discuss previously, I'll add some mail function to inform people about any edit on the event.
I may also add a counter, to render on the UI how many people are following an event
done!
Up to now I have set up function to read/write/update a geojson file for a disaster database. Thinking about it this might be a really bad idea in the case where 2 users will add an event a the same time.
Solution: Using a proper database (elasticsearch ?) might be the best way to manage that.