Skip to content

Custom domain for your forms. Wrap your forms in your own domain 🌯

License

Notifications You must be signed in to change notification settings

garyhtou/Form-Burrito

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Form Burrito (WIP)

Seamless custom domains/urls for your Google Forms, Typeforms, and others!.

A React app that embeds your forms on your domain and uses Firebase for auth and database.

Firebase Realtime Database

Rules

{
	"rules": {
		".read": false,
		".write": false,
		"urls": {
			".read": true,
			".write": "auth != null && root.child('admins/' + auth.uid).exists() && root.child('admins/' + auth.uid).val() === true",
			"$pushKey": {
				".validate": "newData.hasChildren(['short', 'full', 'type', 'time'])"
			}
		},
		"admins": {
			".read": "auth != null",
			".write": "!root.child('admins').exists() || (auth != null && root.child('admins/' + auth.uid).exists() && root.child('admins/' + auth.uid).val() === true)",
			"$uid": {
				".validate": "newData.val() === true || newData.val() === false"
			}
		},
		"users": {
			".read": "auth != null && root.child('admins/' + auth.uid).exists() && root.child('admins/' + auth.uid).val() === true",
			".write": false,
			"$uid": {
				".write": "auth != null && $uid === auth.uid",
				".read": "auth != null && $uid === auth.uid"
			}
		},

		"settings": {
			".read": "auth != null && root.child('admins/' + auth.uid).exists() && root.child('admins/' + auth.uid).val() === true",
			".write": "auth != null && root.child('admins/' + auth.uid).exists() && root.child('admins/' + auth.uid).val() === true"
		}
	}
}

Portion of Burrito in Logo is designed by Freepik

https://www.freepik.com/free-vector/kawaii-fast-food-cute-burrito-taco_5769136.htm#page=1&query=burrito&position=6