This is a Next.js project that integrates Firebase for user authentification and instant messaging and React Context for state management.
To get started with this project,
-
Go to firebase.google.com and create a new project.
-
Within your project, create an application using the Web App option (</>).
-
Copy the configuration for your application into the
.env.local.example
file. -
Enable the Authentication module for the project and select the Google provider. (Optional: Add the Facebook provider and configure your Facebook account in the Meta developer's console).
Note: If your deploy this project, make sure to add the domain name of your production application to the list of Authorized Domains for Firebase Authentication.
-
Enable the Cloud Firestore module for the project.
-
Run the application from the terminal using one of the following commands:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.