Create your free Firebase project
Visit Firebase Console β Create project. Name it something like Lambda Eats. You can skip Google Analytics.
Inside your project, click the Web (</>) icon to register a web app. Give it any nickname. Firebase shows a code snippet containing const firebaseConfig = { ... }. Keep that tab open.
You do not need to enable Firebase Hosting; Netlify will host the website.
Enable the database and paste the security rules
- Firebase Console β Build / Databases & Storage β Firestore Database β Create database. Choose Production mode (not test mode) and a region.
- Open Firestore's Rules tab.
- Open the included
firestore.rulesfile from this ZIP in Notepad, copy all the text, paste it into the Rules editor, and click Publish.
Create an admin account
- Firebase Console β Authentication β Get started β Sign-in method β enable Email/Password and save.
- Go to Authentication β Users β Add user. Enter the chef's email and a strong password.
- In that Users list, copy the new account's User UID (long string of letters and numbers).
- Go to Firestore Database β Data. Create a collection named
admins(all lowercase). Add a document where the Document ID is exactly the UID you copied. Add any field, e.g.name= stringChef. Save.
admins.Need two admins? Create another user, then add their UID as another doc in admins.
Paste Firebase configuration here (no code editing)
Copy the firebaseConfig object from Firebase Console β Project settings βοΈ β General β Your apps β Web app β SDK setup and configuration β Config. Paste the whole snippet into the box.
This is the public web app configuration only (fields like apiKey, projectId, authDomain and appId). Never paste service-account JSON or private keys.
After clicking the button, Windows downloads a file called firebase-config.js. Move that file into the extracted website folder and choose Replace the file in the destination when Windows asks.
Publish the website as a real link
- Open Netlify Drop and sign in.
- On Windows, extract the ZIP first. After replacing
firebase-config.js, drag the Lambda_Eats folder (the folder containingindex.html) into Netlify Drop. Drag the extracted folder, not just the HTML file. - Netlify gives you a link ending in
.netlify.app. That's the link you send to the fraternity. - If Firebase needs it, in Firebase Authentication β Settings β Authorized domains, add your
your-site.netlify.appdomain.
If you already have a Lambda Eats Netlify site, use that site's Deploys area to upload the new folder. That keeps the existing website address.
Log in and update a meal π
- Visit your
.netlify.applink. - When the top badge says β LIVE MENU, click π Admin.
- Sign in with the email and password you created in Firebase.
- Click any MondayβFriday lunch or dinner card, make your change, and press Publish update.
- Have another brother refresh the site (or leave it open β updates appear automatically). They can view the menu without logging in.
Existing file-only edits from the old website do not automatically transfer. The Nov 16β20 meals from your photographed menu are already built in as the starting menu. New edits go to Firestore.