event-management | events conducted in college fests | SQL Database library
kandi X-RAY | event-management Summary
kandi X-RAY | event-management Summary
helps to register an users for on events conducted in college fests with simple logic with secured way
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of event-management
event-management Key Features
event-management Examples and Code Snippets
Community Discussions
Trending Discussions on event-management
QUESTION
We got assigned to make event-management (Creating College Events with Firebase) application in flutter. Work we did: Creating Event (form) and returning an event card (containing event details in brief) in Homescreen. But we were told to make different pages for certain users like admin and student coordinators who can only create an event. While users can view event only. With the help of what can we do this?
Is there any library in flutter which we are unaware of?
Do we have to make another layout for admins and another for coordinator and other for users and then connect them?
...ANSWER
Answered 2020-Aug-15 at 13:49You can give different levels of authorization to different people.
- Maintain a
users
collection in your Firebase database - For each user, create a document. You might already be storing details like
name
,uid
,email
, etc. In addition to that, maintain a string fieldlevel
. - Upon login, check user's
level
. For instance, if thelevel==student
you can display on your homepage only the button that will lead toevent_list_page.dart
. Iflevel==admin
, also display a button tocreate_event_page.dart
.
How will you assign the level
?
If there are only a handful (5-6) admins, manually edit their tag in Firebase console.
(Assuming email auth) Otherwise, you will have to create a list of email ids of admins, in advance. Then you can simply run a script using Firebase Admin SDK to fetch the user documents of admins from your
users
collection in database.If you don't want to use Firebase Admin SDK, you can also write some code in Flutter itself to fetch admin documents and update their tag.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install event-management
Install XAMPP or WAMPP.
Open XAMPP Control panal and start [apache] and [mysql] .
Download project from github(https://github.com/PuneethReddyHC/event-management.git) OR follow gitbash commands i>cd C:\xampp\htdocs\ ii>git clone https://github.com/PuneethReddyHC/event-management.git
extract files in C:\xampp\htdocs.
open link localhost/phpmyadmin
click on new at side navbar.
give a database name as (eventsite) hit on create button.
after creating database name click on import.
browse the file in directory[event-management/database/events.sql].
after importing successfully.
open any browser and type http://localhost/event-management-master.
first register and then login
admin login details Email=admin@gmail.com and Password=123456789.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page