Welcome to UniNest! We built this platform to help university students connect, manage their schedules, and find study buddies seamlessly.
To get the app running locally, follow these simple steps:
-
Install the necessary dependencies:
npm install
-
Start the development server:
npm run dev
If you need to sync user profiles across our Firebase backend, we've included a handy script. This ensures that the display names in our profiles collection match the records in users and Firebase Auth.
-
Point to your Firebase admin credentials:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json -
Run a dry run to see what will change (without actually writing to the database):
npm run sync:displaynames -- --dry
-
When you're ready, execute the changes:
npm run sync:displaynames
Additional Options:
--dry: Preview intended updates without any writes.--limit=N: Process only the first N profile documents.
This script scans each profiles/{uid} document, grabs the best available name (checking name, displayName, and fullName), and updates users/{uid}.displayName. It also tries to update the Firebase Auth displayName for the same user on a best-effort basis.
Thanks for checking out UniNest!