Um chat em Next.js usando os principais recursos do Firebase

Related tags

React firebase-chat
Overview

🔥 Firebase Chat 💬

Um chat em Next.js usando os principais recursos do Firebase 😎

Requisitos

  1. Node 16+
  2. NPM 8+
  3. yarn 1.22+

Envs

Variáveis de inicialização para o firebase

NEXT_PUBLIC_FIREBASE_API_KEY

NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN

NEXT_PUBLIC_FIREBASE_DATABASE_URL

NEXT_PUBLIC_FIREBASE_PROJECT_ID

NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET

NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID

NEXT_PUBLIC_FIREBASE_APP_ID

Variável base para URL das imagens

NEXT_PUBLIC_FIREBASE_BUCKET_URL

Executando o projeto

Execute os seguintes comandos para executar o projeto

  1. Crie o arquivo .env.local com as variáveis informadas anteriormente de acordo com seu projeto firebase
  2. Instale as dependencias yarn
  3. Inicie o servidor local yarn dev
  4. Aproveite! \o/

Estrutura dos componentes

components - Componentes gerais (Header, Card)

layouts - Componentes de layout

pages - Componentes de página

hooks - Trechos de código com a parte lógica

constants - Variávei com valores fixos que serão usados em toda aplicação

Principais bibliotecas usadas

Next.js https://nextjs.org/docs/getting-started

MUI https://mui.com/pt/getting-started/installation/

React Chat Elements https://github.com/Detaysoft/react-chat-elements

React Firebase Hooks https://github.com/csfrequency/react-firebase-hooks

Firebase https://www.npmjs.com/package/firebase

Recursos do firebase usados no projeto

  1. Firestore
  2. Cloud Storage
  3. Authentication
  4. Cloud Functions
  5. Realtime Database

Referências de documentação

https://firebase.google.com/docs/storage

https://firebase.google.com/docs/firestore

https://firebase.google.com/docs/database

https://firebase.google.com/docs/functions?hl=pt-br

https://firebase.google.com/docs/web/setup?hl=pt-br

https://firebase.google.com/docs/auth/web/password-auth

https://firebase.google.com/docs/firestore/solutions/presence?hl=pt-br

You might also like...

Chat application with express.js and ejs template engine

Full Stack Chat Applicaton project with Node Express.js MongoDB & EJS Template Engine - Tutorial Series Youtube Tutorial link You can get the complete

Dec 28, 2022

Chat with an AI that's powered by GPT-j. Talk with it, set parameters, ask questions, and twist words

AI Chat - Open Source | Powered by GPT-j with 6 billion neurons Chat with an AI that's powered by GPT-j. Talk with it, set parameters, ask questions,

Dec 29, 2022

A react component helps bring Figma's Cursor Chat to your web applications in less than 3 minutes, making real-time collaboration anywhere

A react component helps bring Figma's Cursor Chat to your web applications in less than 3 minutes, making real-time collaboration anywhere

@yomo/react-cursor-chat 🧬 Introduction A react component helps bring Figma's Cursor Chat to your web applications in less than 3 minutes, making real

Nov 17, 2022

This repository store the source code of a chat application built in NextJS.

This repository store the source code of a chat application built in NextJS.

This repository store the source code of a chat application built in NextJS. The code was built in alura's React event, and here I styled the code to make it unique and creative!

Mar 31, 2022

This is an online dialog with realtime chat, voice and face to face.

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

Jun 7, 2022

O Aluracord é um clone personalizado do discord com chat em tempo real.

O Aluracord é um clone personalizado do discord com chat em tempo real.

Aluracord O Aluracord é um clone personalizado do Discord durante a Imersão React da Alura. Desde o início da imersão meu objetivo era ir além dela, e

Dec 15, 2022

Next-multipart - Easy & Simple File Uploads for Next.js

Next-Multipart Next-multipart is a small utility library to ease the process of file uploads with Next.js. It uses formidable under the hood, but with

Nov 11, 2022

Next-gen, highly customizable content editor for the browser - based on React and Redux and written in TypeScript. WYSIWYG on steroids.

ReactPage ReactPage is a smart, extensible and modern editor ("WYSIWYG") for the web written in React. If you are fed up with the limitations of conte

Jan 6, 2023

⚡️The Fullstack React Framework — built on Next.js

⚡️The Fullstack React Framework — built on Next.js

The Fullstack React Framework "Zero-API" Data Layer — Built on Next.js — Inspired by Ruby on Rails Read the Documentation “Zero-API” data layer lets y

Jan 4, 2023
Owner
Desenvolvedor Full-Stack
null
Chat Loop is a highly scalable, low-cost, and high performant chat application built on AWS and React leveraging GraphQL subscriptions for real-time communication.

Chat Loop Chat Loop is a highly scalable, low cost and high performant chat application built on AWS and React leveraging GraphQL subscriptions for re

Smile Gupta 24 Jun 20, 2022
A chat application created using React,js and Chat Engine

⭐️ Chat-App ⭐️ A Chat Application created using React.js and Chat Engine Live Site Getting Started with Create React App This project was bootstrapped

Supuni Eleesha Randeniya 1 Dec 15, 2022
Build Instagram 2.0 with Next.js (Firebase v9, Tailwind CSS, NextAuth, Recoil) for the Education Purpose..

This example shows how to use Tailwind CSS (v3.0) with Next.js. It follows the steps outlined in the official Tailwind docs.

Parimal Nakrani 1 Dec 24, 2021
Twitter-Clone-Nextjs - Twitter Clone Built With React JS, Next JS, Recoil for State Management and Firebase as Backend

Twitter Clone This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server: npm run dev # or yarn de

Basudev 0 Feb 7, 2022
İnstagram Clone.You can sign in, sign up, upload image, make comment 📷 Used ReactJS, Material UI, Firebase, Firestore Database

?? instagram-clone This is a instagram clone. You can sign in, sign up, upload image, make comment ?? ⚡ LIVE To check out the live demo of this app AB

null 22 Apr 20, 2022
A text editor built with react , firebase and quill

Welcome to Text-Editor ?? A simple text editor built with react,firebase v8 & quill ✨ Demo Install npm install Usage npm run start Run tests npm run t

Whirl 4 Aug 30, 2022
boilerplate for react-firebase app

Goal of the project Everytime there is an idea about web app side project, significant amount time is spent on building boilerplate code. Especially g

Ephraim Park 4 Dec 8, 2022
NetflixClone - Netflix clone with react , styled components and firebase with user authentication.........

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 1 Jan 3, 2022
This repo is for educational and demonstration purposes only, this project is to demonstrate usage of apollo/client and github API and firebase.

Gissues Gissues is a web application that allows you to search for issues in GitHub. It is built for new developers who want to learn more about GitHu

Shikhar 10 Oct 1, 2022
The chat app built with microservice architecture, the app using: Lerna, pm2, GraphQL

Microservice Chat App A microservice app! Built With Lerna pm2 Graphql Sequelize Socket.io About The Project Here's why: I want learn socket.io and mi

A.Samet Palitci 26 Aug 27, 2022