This is a NextJS starter in Firebase Studio.
To get started, take a look at src/app/page.tsx.
This project requires API keys from both Firebase and Google AI to function correctly.
This project uses Firebase for authentication and database services. To connect the application to your Firebase project, you must provide your project's credentials.
- Open the
.envfile in the root of the project (at the same level aspackage.json). - Add your Firebase project configuration to the
.envfile. You can find these values in your Firebase project settings under "Your apps" > SDK setup and configuration > Config.
Example .env file:
NEXT_PUBLIC_FIREBASE_API_KEY=AIzaSy...
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your-project-id.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your-project-id
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your-project-id.appspot.com
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=1234567890
NEXT_PUBLIC_FIREBASE_APP_ID=1:1234567890:web:abcdef...
The application's login and database features will not function correctly without these credentials. After you add them, the login and sign-up will work.
The AI features in this application (Tranquile Bot, AI Trip Planner) are powered by Google's Generative AI. To enable these features, you must provide a Google AI API key.
- Visit Google AI Studio to create an API key.
- Open the same
.envfile in the root of your project. - Add the key to your
.envfile on a new line, like this:
GOOGLE_API_KEY=AIzaSy...YOUR_GOOGLE_AI_KEY
The AI features will not work without this key. After adding it, the Tranquile Bot and AI Trip Planner will function correctly.