Skip to content

Commit 80ffd9e

Browse files
committed
use firebaserc file
1 parent c8fad34 commit 80ffd9e

3 files changed

Lines changed: 21 additions & 12 deletions

File tree

.firebaserc.example

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
11
{
22
"projects": {
3-
"default": "conferencecenterr"
3+
"default": "openplanner"
44
},
55
"targets": {
6-
"conferencecenterr": {
6+
"openplanner": {
77
"hosting": {
88
"conferencecenterr": [
9-
"conferencecenterr"
9+
"conferencecenterrX"
1010
],
1111
"apiopenplanner": [
12-
"apiopenplanner"
12+
"apiopenplannerX"
1313
],
1414
"serviceapi": [
15-
"serviceapi"
15+
"serviceapiX"
16+
],
17+
"conferencecenterrX": [
18+
"dist"
19+
],
20+
"apiopenplannerX": [
21+
"api-swagger"
22+
],
23+
"serviceapiX": [
24+
"serviceapi-swagger"
1625
]
1726
}
1827
}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ React guidelines:
5151
### Installation
5252

5353
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`.
54+
2. In your Firebase project, create a **Web App** named `openplanner` to obtain the Firebase config. Copy the generated config and populate `.env`.
5555
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):
56+
3. In your Firebase project, create the following **Web App** (replace `X` with your suffix):
5757
- API: Hosting site `apiopenplannerX`
5858
- ConferenceCenter: Hosting site `conferencecenterrX`
5959
- 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.
60+
4. Copy `.firebaserc.example` to `.firebaserc` and set your Firebase project values. Targets are resolved via `firebase target:apply`, no need to hardcode Hosting target name ids in `firebase.json`.
6161
5. Install dependencies with Bun: `bun install`.
6262

6363
Inside OpenPlanner's firebase project:
@@ -83,7 +83,7 @@ firebase target:apply hosting serviceapiX serviceapi-swagger
8383

8484
7. Deploy: `firebase deploy`.
8585

86-
8. Run frontend app : `npm run start`. Your app is available on `http://localhost:3000/` .
86+
8. Run frontend app: `npm run start`. Your app is available on `http://localhost:3000/`.
8787

8888
9. To sign in to the app, create a user in Firebase under Authentication > Users.
8989

firebase.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"hosting": [
77
{
8-
"site": "conferencecenterr2",
8+
"target": "conferencecenterr",
99
"public": "dist",
1010
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
1111
"rewrites": [
@@ -30,7 +30,7 @@
3030
]
3131
},
3232
{
33-
"site": "apiopenplanner2",
33+
"target": "apiopenplanner",
3434
"public": "api-swagger",
3535
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
3636
"rewrites": [
@@ -44,7 +44,7 @@
4444
]
4545
},
4646
{
47-
"site": "serviceapi2",
47+
"target": "serviceapi",
4848
"public": "serviceapi-swagger",
4949
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
5050
"rewrites": [

0 commit comments

Comments
 (0)