update qr code to correct one (@Normand Overney)
Randoms
BaselHack 2023
randoms
BaselHack 2023
How to install firebase:
https://firebase.google.com/docs/cli#install-cli-mac-linux
notes for first setup
First command to run: ```
assuming you have npm installed if not look into node
npm install -g firebase-tools ```
Send Alex Rovner your gmail if not it has be Google Cloud account
Then you can run:
firebase init emulators
You will need to select: auth, functions, firestore, and hosting. Space to select them then Enter.
It will setup you through the install and you add the code to the project then select the following answers:
? Which port do you want to use for the functions emulator? 5001
? Which port do you want to use for the firestore emulator? 8080
? Which port do you want to use for the hosting emulator? 5000
? Which port do you want to use for the auth emulator? 9099
? Would you like to enable the Emulator UI? Yes
? Which port do you want to use for the Emulator UI (leave empty to use any available port)?
? Would you like to download the emulators now? Yes
Then to start the project you run:
```
this insures that local changes to the database gets saved for later testing
firebase emulators:start --import export --export-on-exit export ```
Running Locally
Make sure you setup a python3 virtual environment:
sudo apt-get install python3.11
sudo apt install python3.11-venv
python3.11 -m venv functions/venv
source functions/venv/bin/activate && python3.11 -m pip install -r functions/requirements.txt
For conda users:
to turn off the default base so not opening initially
conda config --set auto_activate_base false
Install the emulators with firebase init emulators
and then run firebase emulators:start
to start the emulators.
The emulator UI will be available under localhost:4000
. The webpage will be available under localhost:5000
.
Deploying to Production
First, build the frontend packages.
cd frontend
npm run generate
cd ../website
npm run build
cd ..
Then, deploy the functions, firestore, and hosting.
firebase deploy --except hosting
cd frontend
firebase deploy --only hosting
This will deploy the functions, firestore, and hosting to production.
Event finished
Merge branch 'main' of https://github.com/noverney/randoms (@snophey)
change rewrites, up functions resources (@snophey)
add the flavicon (@Normand Overney)
renamed the file (@Normand Overney)
Merge branch 'main' of github.com:noverney/randoms (@Normand Overney)
update the flavicon (@Normand Overney)
Add match message (@toblu96)
Fix loading error when there are no matches (@toblu96)
set it to 0, since that should be the default (@BAAAKA)
adjusted addnoiseto_array to make the scale 0 to 1 more intuitive (@BAAAKA)
Add logo to nav (@toblu96)
Add empty space image (@toblu96)
Fixes on index page (@toblu96)
Merge branch 'main' of github.com:noverney/randoms (@Normand Overney)
remove useless file (@Normand Overney)
Add avatar placeholder to menu bar (@toblu96)
add image for empty state (@Normand Overney)
Adjust default interests (@toblu96)
Improve mobile view on user settings page (@toblu96)
Add latest match to index page (@toblu96)
Merge branch 'main' of github.com:noverney/randoms (@Normand Overney)
added BaselHack (@Normand Overney)
Merge branch 'main' of https://github.com/noverney/randoms (@jareem)
fix inputs fields (@jareem)
Merge branch 'main' of github.com:noverney/randoms (@Normand Overney)
create qr codes and updated website a bit (@Normand Overney)
nicer input fields + company logo (@jareem)
change URLs in email (@snophey)
change email from which the email is sent (@snophey)
tweaking color codes for maincard (@jareem)
adding toast on save (@jareem)
Merge branch 'main' of https://github.com/noverney/randoms (@snophey)
filter users to make sure we do not match nonexistent users (@snophey)
added the possibility to add noise in matching_users.py (@BAAAKA)
Auto navigate after save (@toblu96)
Merge branch 'main' of https://github.com/noverney/randoms (@snophey)
fix bug with duplicate avatar url, fix bad import (@snophey)
Merge branch 'main' of github.com:noverney/randoms (@Normand Overney)
fix the production url (@Normand Overney)
Update user login and validate user settings (@toblu96)
first version of doc website is ready (@Normand Overney)
have webstie sudo ready (@Normand Overney)
Merge branch 'main' of github.com:noverney/randoms (@Normand Overney)
remove useless file (@Normand Overney)
rewire docusaurus and hosting rewrites (@snophey)
Merge branch 'main' of github.com:noverney/randoms (@Normand Overney)
created logo (@Normand Overney)
added removepreviousmnatches, not active yet tho (@BAAAKA)
Replace user settings page (@toblu96)