Demo https://monty-src.github.io/whatsapp-remix
This repository is part of the monty-src/remix series, and contains a WhatsApp clone built using Typescript, NextJS, Styled Components and Firebase.
a superset of Javascript that adds optional static typing and other features to the language.
https://www.typescriptlang.org/
a popular React framework for building srver-rendered applications and static websites.
git clone https://github.com/monty-src/whatsapp-remix.git
- Click Create a project.
- Enter project name whatsapp-remix
- Disable Google Analytics for your Firebase project
- Contine
- Click Sidebar > Authentication > Sign-in method
- Click Google
- Click Enable
- Populate Project support email
- Click Project Overview > Gear > Project Settings
- Click </> under Your apps
- App nickname whatsapp-remix
- Click Register app
Will produce the following artifact.
const firebaseConfig = {
apiKey: "WHATSAPP_REMIX_FIREBASE_API_KEY",
authDomain: "WHATSAPP_REMIX_FIREBASE_AUTH_DOMAIN",
projectId: "WHATSAPP_REMIX_FIREBASE_PROJECT_ID",
storageBucket: "WHATSAPP_REMIX_FIREBASE_STORAGE_BUCKET",
messagingSenderId: "WHATSAPP_REMIX_FIREBASE_MESSAGING_SENDER_ID",
appId: "WHATSAPP_REMIX_FIREBASE_APP_ID",
};
- Change Directory into whatsapp-remix
- Create .env.local
WHATSAPP_REMIX_FIREBASE_API_KEY={WHATSAPP_REMIX_FIREBASE_API_KEY}
WHATSAPP_REMIX_FIREBASE_AUTH_DOMAIN={WHATSAPP_REMIX_FIREBASE_AUTH_DOMAIN}
WHATSAPP_REMIX_FIREBASE_PROJECT_ID={WHATSAPP_REMIX_FIREBASE_PROJECT_ID}
WHATSAPP_REMIX_FIREBASE_STORAGE_BUCKET={WHATSAPP_REMIX_FIREBASE_STORAGE_BUCKET}
WHATSAPP_REMIX_FIREBASE_MESSAGING_SENDER_ID={WHATSAPP_REMIX_FIREBASE_MESSAGING_SENDER_ID}
WHATSAPP_REMIX_FIREBASE_APP_ID={WHATSAPP_REMIX_FIREBASE_APP_ID}
- Go to https://firebase.google.com/
- Click Create database
- Click Start in production mode
- Click Next
- Click Cloud Firestore location
- Click Enable
- Click Start collection
- Populate users
- Click Next
- Click Auto-ID
- Click Save
npm i
npm run dev