Mystery Message is a secure and anonymous messaging platform built using Next.js. It allows users to send and receive messages without revealing their identities, ensuring a fun and confidential communication experience.
- 🔒 Anonymous Messaging – Send messages without exposing your identity.
- 🎨 User-Friendly Interface – Simple and intuitive design for seamless interaction.
- 🔐 Secure Communication – Ensures privacy and safety while messaging.
- ⚡ Fast & Responsive – Optimized for speed and performance.
- Frontend: Next.js, React.js, Tailwind CSS
- Backend: Next.js API Routes, Node.js
- Database: MongoDB
- Authentication: JWT (Next Auth Credentials Provider)
Before setting up the project, ensure you have the following installed:
git clone https://github.com/DNahar74/mystery-message.git
cd mystery-messageUsing npm:
npm installUsing Yarn:
yarn installCreate a .env file in the project root and configure necessary environment variables:
MONGODB_URI=your_mongodb_connection_string
RESEND_API_KEY=your_resend_API_key
NEXTAUTH_SECRET=your_secret_key
OPENAI_API_KEY=xxxxxxxxxUsing npm:
npm run devUsing Yarn:
yarn devOpen http://localhost:3000 in your browser.
To create a production-ready build:
Using npm:
npm run build
npm startUsing Yarn:
yarn build
yarn startFor deployment, consider hosting on Vercel, Netlify, or Docker-based servers.
- Docker installed on your system
-
Build the Docker image:
docker build -t mystery-message . -
Run the container with environment variables:
docker run -p 3000:3000 --env-file .env mystery-message
The application will be available at http://localhost:3000
- Build image:
docker build -t mystery-message . - Run container:
docker run -p 3000:3000 --env-file .env mystery-message - Run in background:
docker run -d -p 3000:3000 --env-file .env mystery-message - Stop container:
docker stop <container-id> - View running containers:
docker ps - View logs:
docker logs <container-id>
Make sure your .env file contains all required environment variables:
MONGODB_URI=your_mongodb_connection_string
RESEND_API_KEY=your_resend_API_key
NEXTAUTH_SECRET=your_secret_key
OPENAI_API_KEY=xxxxxxxxxContributions are welcome! Please read the CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License. See the LICENSE file for more details.
For queries, feedback, or suggestions:
- GitHub Issues: Submit here
- Email: nahardarsh55@gmail.com
Happy Messaging! 🎉