Anonymous Chat is a real-time messaging application built using HTML, CSS, JavaScript, and Firebase. It allows users to send and receive messages instantly, leveraging Firebase’s cloud services for real-time data syncing and storage. This project helped me understand more about how frontend works cohesively with backend and also further extended my knowlege on web servers. It also taught me about security measures and how to defend against hackers.
This is the login page for the Anonymous Chat app, where users can enter the chat while using a google account.
This shows the chat in action, where users can send and receive messages in real-time.
The Anonymous Chat app was built using the following tools and technologies:
index.html (Main structure and layout of the chat app)style.css (App’s visual styling)app.js (Handles Firebase interaction and real-time message updates)firebase-config.js (Configuration for Firebase SDK and database connection)In the future, I plan to publish my chat app to the internet using either GitHub Pages or Firebase. However, I haven’t published it yet because I need proper HTML implementation to do so. Right now, I can only run the app locally since I only have working JavaScript and CSS. Additionally, before making it live, I want to implement additional features, such as the ability to reply to messages, add reactions, and improve the overall user experience. My goal is to make the app cooler, more interactive, and better for users.
To build and run the Anonymous Chat App, you will need:
cd chat
npm install
npm start
If you want to deploy the app online using Firebase, follow these steps (Only works if there is proper HTML implementation):
npm install -g firebase-tools
firebase login
firebase init
Choose the Firebase Hosting option during initialization.
firebase deploy
Once deployed, Firebase will provide a URL where your chat app will be live!
If you decide to delete your Firebase project or stop using it, you can run: ```sh firebase projects delete