Welcome to the Anonymous Messaging Platform! This is a web application that allows users to send and receive messages anonymously. This README file provides an overview of the project, installation instructions, usage guidelines, and more.
- Send messages anonymously
- Receive messages from other users anonymously
- Real-time messaging
- User-friendly interface
- Secure and private communication
A live demo of the application is available at: Live Demo
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/mrkeshav-05/MstryMessage cd backend cd chat_app_frontend
-
Install dependencies: in both the folders backend and chat_app_frontend
npm install
-
Set up environment variables: Create a
.env
file in the root directory and add the following environment variables:PORT='8000' MONGO_DB_URL=mongodbURI JWT_SECRET_KEY=secretkey JWT_EXPIRATION=anytime NODE_ENV="development"
-
Start the development server: for starting the server
npm run server
for starting the frontend
npm run dev
-
Open your browser: Navigate to
http://localhost:3000
to see the application in action.
-
Register/Login:
- Users can register or log in to start messaging.
- No personal information is required for registration.
-
Send Messages:
- Users can send messages anonymously to the platform.
- Messages are displayed in real-time.
-
Receive Messages:
- Users can receive messages from others anonymously.
- All messages are displayed in a chronological order.
-
Database:
- This application uses MongoDB for storing messages.
- Configure your MongoDB URI in the
.env
file.
-
Sessions:
- Sessions are used to manage user sessions.
- Configure your session secret in the
.env
file.
-
Frontend:
- Vite+React
- Tailwind CSS
- DaisyUI (Tailwind CSS components)
- Socket.io-client
-
Backend:
- Node.js
- Express.js
- Socket.io
-
Database:
- MongoDB
-
Others:
- Socket.io (for real-time messaging)
- dotenv (for environment variables)
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for more information.
For any questions or feedback,