[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com) ![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge) ![Visitors](https://api.visitorbadge.io/api/visitors?path=DhanushNehru%2FHarmonyCode%20&countColor=%23263759&style=for-the-badge) ![GitHub forks](https://img.shields.io/github/forks/DhanushNehru/HarmonyCode?style=for-the-badge) ![GitHub Repo stars](https://img.shields.io/github/stars/DhanushNehru/HarmonyCode?style=for-the-badge) ![GitHub contributors](https://img.shields.io/github/contributors/DhanushNehru/HarmonyCode?style=for-the-badge) ![GitHub last commit](https://img.shields.io/github/last-commit/DhanushNehru/HarmonyCode?style=for-the-badge) ![GitHub repo size](https://img.shields.io/github/repo-size/DhanushNehru/HarmonyCode?style=for-the-badge) ![Github](https://img.shields.io/github/license/DhanushNehru/HarmonyCode?style=for-the-badge) ![GitHub issues](https://img.shields.io/github/issues/DhanushNehru/HarmonyCode?style=for-the-badge) ![GitHub closed issues](https://img.shields.io/github/issues-closed-raw/DhanushNehru/HarmonyCode?style=for-the-badge) ![GitHub pull requests](https://img.shields.io/github/issues-pr/DhanushNehru/HarmonyCode?style=for-the-badge) ![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/DhanushNehru/HarmonyCode?style=for-the-badge)
This is a Next.js project bootstrapped with create-next-app
.
Before you begin, ensure you have met the following requirements:
To run this project, you need to set up environment variables for Firebase. These variables contain sensitive information and should not be hard-coded in your codebase. Follow these steps to set up the required environment variables:
Create a Firebase Project:
Obtain Firebase Configuration:
You will find the Firebase configuration object, which includes the following properties:
apiKey
authDomain
projectId
storageBucket
messagingSenderId
appId
Set Up Environment Variables:
In your project directory, create a .env.local
file (if it doesn't already exist).
Add the following lines to the .env.local
file:
NEXT_PUBLIC_API_KEY=<Your-API-Key>
NEXT_PUBLIC_AUTH_DOMAIN=<Your-Auth-Domain>
NEXT_PUBLIC_PROJECT_ID=<Your-Project-ID>
NEXT_PUBLIC_STORAGE_BUCKET=<Your-Storage-Bucket>
NEXT_PUBLIC_MESSAGING_SENDER_ID=<Your-Messaging-Sender-ID>
NEXT_PUBLIC_APP_ID=<Your-App-ID>
NEXT_PUBLIC_GEMINI_API_KEY=<your-gemini-api>
Replace <Your-API-Key>
, <Your-Auth-Domain>
, etc., with the respective values you obtained from Firebase.
.env.local
file.Load Environment Variables:
dotenv
or Vercel's built-in support for environment variables.Enabling Authentication:
Google Authentication:
Google Authentication is now enabled in your project.
For detailed instructions, refer to the Firebase's Google Authentication documentation.
Github Authentication:
For detailed instructions, refer to the Firebase's GitHub Authentication documentation.
Start Your Application:
Provide information on how to use your project once the environment variables are set up correctly.
We welcome contributions from the community! If you're interested in contributing to this project, please read our contribution guidelines.
This project is licensed under the [License Name] - see the LICENSE.md file for details. and contributions are welcome!
Welcome to Gitpod, your cloud-ready development environment where you can start coding directly and see your changes in action on a live server, all without the need to clone the repository. Here's a guide to help you set up and run your app using Gitpod, specifically addressing the need for Firebase environment variables.
Before running the app, it's essential to set up Firebase environment variables to ensure the proper functioning of your application. For more detailed information about setting up environment variables in Gitpod, refer to the official Gitpod documentation on Configuring Projects - Environment Variables.
Access Gitpod Projects: Navigate to Gitpod Projects and ensure you are logged into your GitHub account.
Create a New Gitpod Project: Click on "New Project" and search for the HarmonyCode repository (fork it if necessary). Choose the HarmonyCode repository.
Access Project Settings: Once the project is created, go to project settings.
Configure Environment Variables: Navigate to the "Variables" section in project settings.
Set Firebase Environment Variables: Add the following Firebase configuration variables:
NEXT_PUBLIC_API_KEY=<Your-API-Key>
NEXT_PUBLIC_AUTH_DOMAIN=<Your-Auth-Domain>
NEXT_PUBLIC_PROJECT_ID=<Your-Project-ID>
NEXT_PUBLIC_STORAGE_BUCKET=<Your-Storage-Bucket>
NEXT_PUBLIC_MESSAGING_SENDER_ID=<Your-Messaging-Sender-ID>
NEXT_PUBLIC_APP_ID=<Your-App-ID>
<Your-API-Key>
, <Your-Auth-Domain>
, etc., with the respective Firebase configuration values. Refer to the "Setting Up Firebase Environment Variables" section for details.Create a Workspace from the Main Branch: Hover over the "main" branch and click on "Create a new workspace".Click "Continue" to set up the workspace.
Verify Environment Variables:
Open the terminal in Gitpod and type gp env
to verify if the environment variables are correctly set.
Start the Application: Start your application by running the command npm run dev.