Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork14
🔥Boilerplate Project for Authentication with Firebase in React styled with Semantic UI
the-road-to-react-with-firebase/react-semantic-ui-firebase-authentication
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Related:
- uses:
- only React (create-react-app)
- firebase
- react-router
- semantic UI
- features:
- Sign In
- Sign Up
- Sign Out
- Password Forget
- Password Change
- Verification Email
- Protected Routes with Authorization
- Roles-based Authorization
- Social Logins with Google, Facebook and Twitter
- Linking of Social Logins on Account dashboard
- Auth Persistence with Local Storage
- Database with Users and Messages
If you want to use this starter project to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. Purchase an commercial license for different team sizes:
It grants you also access to the other starter projects in this GitHub organization.
If you are creating an open source application under a license compatible with theGNU GPL license v3, you may use this starter project under the terms of the GPLv3.
git clone git@github.com:the-road-to-react-with-firebase/react-semantic-ui-firebase-authentication.gitcd react-semantic-ui-firebase-authenticationnpm installnpm start- visithttp://localhost:3000
Get an overview of Firebase, how to create a project, what kind of features Firebase offers, and how to navigate through the Firebase project dashboard in thisvisual tutorial for Firebase.
- copy/paste your configuration from your Firebase project's dashboard into one of these files
- src/components/Firebase/firebase.js file
- .env file
- .env.development and.env.production files
The.env or.env.development and.env.production files could look like the following then:
REACT_APP_API_KEY=AIzaSyBtxZ3phPeXcsZsRTySIXa7n33NtQREACT_APP_AUTH_DOMAIN=react-firebase-s2233d64f8.firebaseapp.comREACT_APP_DATABASE_URL=https://react-firebase-s2233d64f8.firebaseio.comREACT_APP_PROJECT_ID=react-firebase-s2233d64f8REACT_APP_STORAGE_BUCKET=react-firebase-s2233d64f8.appspot.comREACT_APP_MESSAGING_SENDER_ID=701928454501- Email/Password
- Troubleshoot
- add a redirect URL for redirecting a user after an email verification into one of these files
- src/components/Firebase/firebase.js file
- .env file
- .env.development and.env.production files
The.env or.env.development and.env.production files could look like the following then (excl. the Firebase configuration).
Development:
REACT_APP_CONFIRMATION_EMAIL_REDIRECT=http://localhost:3000Production:
REACT_APP_CONFIRMATION_EMAIL_REDIRECT=https://mydomain.com{ "rules": { ".read": false, ".write": false, "users": { "$uid": { ".read": "$uid === auth.uid || root.child('users/'+auth.uid).child('roles').hasChildren(['ADMIN'])", ".write": "$uid === auth.uid || root.child('users/'+auth.uid).child('roles').hasChildren(['ADMIN'])" }, ".read": "root.child('users/'+auth.uid).child('roles').hasChildren(['ADMIN'])", ".write": "root.child('users/'+auth.uid).child('roles').hasChildren(['ADMIN'])" }, "messages": { ".indexOn": ["createdAt"], "$uid": { ".write": "data.exists() ? data.child('userId').val() === auth.uid : newData.child('userId').val() === auth.uid" }, ".read": "auth != null", ".write": "auth != null", }, }}About
🔥Boilerplate Project for Authentication with Firebase in React styled with Semantic UI
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.
