@@ -44,23 +44,48 @@ React guidelines:
4444
4545### Requirements
4646
47- - One firebase project for ** ` open planner ` ** .
47+ - One Firebase project for ** ` OpenPlanner ` ** on the Blaze plan .
4848- Node.js ** 20+**
4949- [ Bun.js] ( https://bun.js.org/ ) as a build tool
5050
5151### Installation
5252
53- 1 . Create a ** ` .env ` ** with ** ` .env.example ` ** as a template.
54- 2 . Create a web app in your firebase project for ** ` conference hall ` ** and ** ` open planner ` ** . then copy the config and fill ** ` .env ` ** with it.
55- 3 . Use [ bun.sh] ( https://bun.sh/ ) to install dependencies and build the project: ` bun install `
53+ 1 . Create a ` .env ` from ` .env.example ` . Do the same for the ` .env ` files in ` functions ` .
54+ 2 . In your Firebase project, create a ** web app** with Firebase Hosting named ` openplanner ` . Copy the generated config and populate ` .env ` .
55+ For the API URL, create a ** Function** named ` api ` and copy its trigger URL into the env file.
56+ 3 . Create the following ** web app** , each with its own Hosting site (replace ` X ` with your suffix):
57+ - API: Hosting site ` apiopenplannerX `
58+ - ConferenceCenter: Hosting site ` conferencecenterrX `
59+ - ServiceApi: Hosting site ` serviceapiX `
60+ 4 . Update ` firebase.json ` so the ` site ` value matches the correct Hosting site name for the target you are deploying.
61+ 5 . Install dependencies with Bun: ` bun install ` .
5662
5763Inside OpenPlanner's firebase project:
5864
59- 1 . Enable Authentication with email/pwd in console.firebase.google.com
60- 2 . In the Authentication parameters, "User actions", disable the "Protection against enumeration of e-mail addresses (recommended)" option
61- 3 . Enable Storage, with rules in test or prod (whatever)
62- 4 . Set the hosting config for the website using the firebase CLI: ` firebase target:apply hosting conferencecenterr dist `
63- 5 . Set the hosting config for the API (swagger) ` firebase target:apply hosting apiopenplanner api-swagger `
65+ 1 . Enable Authentication with email/password (Authentication > Sign-in method > Email/Password > Enable).
66+ 2 . In Authentication settings, under User actions, disable “Protection against email enumeration (recommended)”.
67+ 3 . Create Storage (use test or prod rules as needed).
68+ 4 . Create a Firestore database (default mode).
69+ 5 . Log in and select the Firebase project in your terminal:
70+
71+ ```
72+ firebase login
73+ firebase use openplanner
74+ ```
75+
76+ 6 . Configure hosting targets with the Firebase CLI (adjust names to your actual Hosting sites):
77+
78+ ```
79+ firebase target:apply hosting conferencecenterrX dist
80+ firebase target:apply hosting apiopenplannerX api-swagger
81+ firebase target:apply hosting serviceapiX serviceapi-swagger
82+ ```
83+
84+ 7 . Deploy: ` firebase deploy ` .
85+
86+ 8 . Run frontend app : ` npm run start ` . Your app is available on ` http://localhost:3000/ ` .
87+
88+ 9 . To sign in to the app, create a user in Firebase under Authentication > Users.
6489
6590### Development
6691
0 commit comments