fossnsbm / fossnsbm-web-backend Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
As a user/ Admin or super admin, I should be able to sign up to the site in order to register for an event
As an admin or super admin, I should be able to edit an event if there is something that needs to change. (Ex: - If the date was postponed, I should be able to edit the date of the event.)
Blocked by #10
As a user/ Admin or super admin, I should be able to edit my profile at any moment.
As a user, I should be able to register for the event in order to join.
Blocked by #10
As an admin or super admin, I should be able to remove the events.
Blocked by #10
As a user/ Admin or super admin, I should be able to login to the RSVP site
As an admin or super admin, I should be able to check the responses which were gathered from the registrations of events.
Blocked by #8
As a user, I should be able to sign up to the site in order to register for an event
As a user/ Admin or super admin, I should be able to login to the RSVP site
Getting the role from the client is a bad idea, you could make a collection called users in firestore and create documents corresponding to the user's UID and have an empty "role" field that can be updated later along with their info?.
But I guess the above logic would lead to a lot of hardcoded "rules" which would be hard to maintain?.
OR
Since you are using firebase firestore here you could ditch the whole role thing and use firebase rules instead, you could literally write a function like this:
function isAdmin(){ return request.auth.uid == "ADMINUID"; }
match /events/{ allow read :if isSignedIn(); allow write:if isAdmin(); allow delete:if isAdmin(); }
Just my idea/opinion maybe you guys have figured out something better
Thanks
As a user, I should be able to check the events in order to register for the events which I want to join.
Blocked by #10
As an admin or super admin, I should be able to create an event on the rsvp site.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.