Giter Club home page Giter Club logo

fossnsbm-web-backend's People

Contributors

buddhikad avatar nimeshkavinda avatar z9fr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fossnsbm-web-backend's Issues

[RSVP-1] Login

As a user/ Admin or super admin, I should be able to login to the RSVP site

User types

  • User
  • Admin
  • Super admin

[RSVP-7] Check Event

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

User Types

  • User

[RSVP-2] Signup

As a user, I should be able to sign up to the site in order to register for an event

User types

  • User

[RSVP-4] Edit profile

As a user/ Admin or super admin, I should be able to edit my profile at any moment.

User types

  • User
  • Admin
  • Super admin

A few issues and some ideas

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

RSVP-1

As a user/ Admin or super admin, I should be able to login to the RSVP site

[RSVP-9] Remove event

As an admin or super admin, I should be able to remove the events.

Blocked by #10

User types

  • Admin
  • Super admin

[RSVP-6] Create Event

As an admin or super admin, I should be able to create an event on the rsvp site.

User Types

  • Admin
  • Super admin

[RSVP-8] Edit 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

User types

  • Admin
  • Super admin

[RSVP-3] Check responses

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

User types

  • Admin
  • Super admin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.