You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### *How to add the service file credentials in the sample-env.json*
35
-
- Remove all the spaces such that the whole _json_ that you copied is in a single line
36
-
- Replace **\n** with **\\\\n** in your copied json
37
-
- Replace **"** with **\\"** in your copied json
38
-
### *Firestore setup before running the server locally*
39
-
- Create an application on [FireStore](https://firebase.google.com/docs/firestore) and [generate a service file](https://cloud.google.com/iam/docs/creating-managing-service-account-keys).
40
-
- Add the service file credentials in the sample-env.json file as a string.
41
-
- Rename `sample-env.json` to `env.json`
42
-
43
-
### *Executing the script to run the server locally*
44
-
45
-
- Windows users need to download & install [Git bash](https://gitforwindows.org/) to execute the scirpt.
46
-
- Mac/Linux users can run the script in your native terminal.
33
+
# Setting Up the Environment for Your Local Server
34
+
35
+
## Firestore Setup
36
+
37
+
1. Create an application on [Firebase Firestore](https://firebase.google.com/docs/firestore)
38
+
2.[Generate a service account key file](https://cloud.google.com/iam/docs/creating-managing-service-account-keys)
39
+
40
+
## Environment Configuration
41
+
42
+
1. Create an `env.json` file by copying the `sample-env.json` template
43
+
2. Add your Firestore service credentials to the file
44
+
45
+
### Formatting Service Credentials
46
+
When adding the service account JSON to your `env.json` file:
47
+
- Convert the entire JSON to a single line string
48
+
- Escape special characters:
49
+
- Replace all newlines (`\n`) with escaped newlines (`\\n`)
50
+
- Replace all double quotes (`"`) with escaped double quotes (`\"`)
0 commit comments