Skip to content
This repository was archived by the owner on Feb 21, 2026. It is now read-only.

DNahar74/mystery-message

Repository files navigation

Mystery Message

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.

🚀 Features

  • 🔒 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.

🛠️ Technologies Used

  • Frontend: Next.js, React.js, Tailwind CSS
  • Backend: Next.js API Routes, Node.js
  • Database: MongoDB
  • Authentication: JWT (Next Auth Credentials Provider)

📌 Prerequisites

Before setting up the project, ensure you have the following installed:

  • Node.js (v14 or higher recommended)
  • npm or Yarn
  • MongoDB

🔧 Installation

1️⃣ Clone the Repository

git clone https://github.com/DNahar74/mystery-message.git
cd mystery-message

2️⃣ Install Dependencies

Using npm:

npm install

Using Yarn:

yarn install

3️⃣ Set Up Environment Variables

Create 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=xxxxxxxxx

4️⃣ Run the Development Server

Using npm:

npm run dev

Using Yarn:

yarn dev

Open http://localhost:3000 in your browser.

🔧 Building & Deployment

To create a production-ready build:

Using npm:

npm run build
npm start

Using Yarn:

yarn build
yarn start

For deployment, consider hosting on Vercel, Netlify, or Docker-based servers.

🐳 Docker Deployment

Prerequisites

  • Docker installed on your system

Building the Docker Image

  1. Build the Docker image:

    docker build -t mystery-message .
  2. 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

Docker Commands

  • 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>

Environment Variables

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=xxxxxxxxx

🤝 Contributing

Contributions are welcome! Please read the CONTRIBUTING.md for guidelines.

📄 License

This project is licensed under the MIT License. See the LICENSE file for more details.

📞 Contact

For queries, feedback, or suggestions:


Happy Messaging! 🎉

About

this is a next.js project to send anonymous messages to users

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages