Binary Dump is an anonymous platform designed for our class to rant, share memories, and post anything freely. Built overnight, it quickly became a hotspot for raw, unfiltered thoughts. However, with great anonymity comes great chaosβwe faced NoSQL injection, object injection, DDoS, and XSS attacks on launch night. But after pulling an all-nighter securing the server, Binary Dump stood strong and remains fully functional and attack-resistant. Weβre now working on new updates to make it even more interactiveβmaybe even for a wider audience!
- Anonymous Posting: Share thoughts and memories without revealing identity.
- Secure & Resilient: Patched against NoSQL Injection, DDoS, and XSS attacks.
- Fast & Simple UI: A seamless experience, thanks to Aditya.
- Built for Fun: A place to dump thoughts, make memories, and laugh.
- Upcoming Updates: More interactions for the classβand maybe beyond!
- Node.js & npm
- MongoDB
- A deployment platform (Vercel recommended)
-
Clone the repository:
git clone https://github.com/Aakarsh-Kumar/binary-dump.gitcd binary-dump -
Install dependencies:
npm install -
Set up environment variables (
.envfile): for server:MONGO_URI=your_mongodb_connection_string SECRET_KEY=your_secret_key RECAPTCHA_SECRET = recaptcha_secret_key ALLOWED_ORIGINS = "http://localhost:5173"for client:
VITE_BASE_API_URL ="http://127.0.0.1:8080" VITE_ALLOWED_ORIGINS="http://localhost:5173" VITE_RECAPTCHA_SITEKEY = recaptcha_site_key -
Start the servers: for server-side
npm startfor client-side
npm dev -
Access the platform locally:
http://localhost:5173
- NoSQL Injection Protection: Sanitized queries & input validation.
- DDoS Mitigation: Rate limiting & IP blocking.
- XSS Prevention: Content sanitization & secure headers.
- Object Injection Protection: Controlled data access & validation.
Big thanks to Rahul Marban for helping me understand server security with Vercel.
binary-dump/
βββ server/
β βββ controllers # Server & API handling
β βββ routes/ # API Endpoints
β βββ models/ # Database Schemas
β βββ logger.mjs/ # Logging format file
β βββ index.mjs # Main Server File
β βββ .env # Client side env variables.
| βββ package.json # Dependencies & Scripts
βββ client/
β βββ src/
| | βββ assets/ # Logo and Icons
| | βββ pages/ # Main Page
β | βββ App.jsx # Entry Point
β | βββ App.css # Importing Tailwind
β | βββ main.jsx # Initial Origin Check
β βββ index.html # ReactDOM Rendering
| βββ package.json # Dependencies & Scripts
βββ README.md # Project Documentation
- Reactions & Comments: More ways to interact with posts.
- Personalized Feeds: Trending posts within the class.
- Expanded Access: Who knows? Maybe Binary Dump goes beyond our class!
- π§ Portfolio: aakarsh.is-a.dev
- πΌ LinkedIn: aakarsh-kumar25
- π» GitHub: Aakarsh-Kumar
- π± Instagram: @aakarsh_kumar25