VITE_API_URL=
VITE_API_KEY=
VITE_AUTH_DOMAIN=
VITE_PROJECT_ID=
VITE_STORAGE_BUCKET=
VITE_MESSAGING_SENDER_ID=
VITE_APP_ID=
VITE_BUCKET_URL=
VITE_GNEWS_API_KEY=
gsutil
is part of the Google Cloud SDK. If you don’t have it installed, follow these steps to install it:
-
Install the Google Cloud SDK.
-
Once installed, initialize it by running:
gcloud init
Create a cors.json
file with your desired CORS configuration. Here's the file:
[
{
"origin": ["http://localhost:5173"],
"method": ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
"maxAgeSeconds": 3600,
"responseHeader": ["Content-Type", "Authorization"]
}
]
Now, use the following gsutil
command to set the CORS configuration for your Firebase Storage bucket:
gsutil cors set cors.json <bucket-url>
Make sure to replace <bucket-url>
with your bucket name if it's different.
You can verify that the CORS settings were applied correctly by running:
gsutil cors get <bucket-url>
This will display the current CORS configuration for your bucket.
npm run dev
MONGODB_URI=""
JWT_SECRET=""
PORT=5000
JWT_EXPIRE="<your-custom-duration>(for e.g. 10h)"
DIALOGFLOW_PROJECT_ID=""
DIALOGFLOW_KEY_PATH=""
GEMINI_API_KEY=""
npm run server
Run the following command based on your operating system.
python -m venv env
python3 -m venv env
This will create a virtual environment named env
in your current directory.
.\env\Scripts\activate
source env/bin/activate
After activation, your terminal prompt should show the virtual environment name, typically as (env)
.
To deactivate, simply run:
deactivate
You are now back to the global Python environment.
> **Tip:** Always activate your virtual environment before installing any packages to keep dependencies isolated.
python app.py