Skip to content

Latest commit

 

History

History
115 lines (68 loc) · 6.2 KB

making-totel-chat.md

File metadata and controls

115 lines (68 loc) · 6.2 KB

making totel chat app

Post man requests

  • Creating locations with api:

image

  • Creating types api works like that:

image

Using twilio in totel

image

image

image

Creating a Verify service i.e., OTP verification: (via sms/whatsapp/email/etc

image

  • Now you may pin the product for faster access when you need it later:

image

  • You can check the logs of otps send on your account by navigating to this:

image

  • You can check usage summary of twilio products via:

image

  • I WAS GETTING ERROR code 20003 probably bcoz my account is suspended. Source: Error 20003

image

new life

# installed firebase cli
npm install -g firebase-tools
# login
firebase login
# list firebase projects
firebase projects:list
# COMPLETE CLI REFERECNE: https://firebase.google.com/docs/cli#sign-in-test-cli

npm install firebase react-firebase-hooks

image

For firestore db I used this version: image

We are using this to provide internalization to the nextjs app

image

previous life

Amazing referece article (has code): https://gabrieltanner.org/blog/nestjs-realtime-chat/

NESTJS DOCS - FIXING error "Hydration failed because the initial UI does not match what was rendered on the server."

  • React hydration Errror in Nextjs Docs
  • Lovely article: here from above nextjs docs page and I fixed the isseu using <ClinetOnly> component for the issue.
  • A Stackoverflow question related to this
  • Medium article on making realtime chat app with nextjs only - Click here. BTW: Theo uses pusher for the RTC communication: check here
  • Implementing socket.io+nextjs+heroku: 45 Upvotes Stackoverflow answer
  • WE are using https://cloudinary.com/ for api for compressing and managing images and videos, check in file: src/pages/api/upload.js.

project understanding

Thats how project auth is organized:

image

Other

This is what i need to do to fix the auth via vanillay hooks later on

Source: css-tricks article on making chat room with firebase and react

image