Skip to content

SecondBrain is a full-stack application built with React, Tailwind CSS, TypeScript, Node.js, and MongoDB, designed to help you store, manage, and share your favorite links, notes, tweets, and videos — like a second digital brain.

License

Notifications You must be signed in to change notification settings

inaveed-git/secondbrain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 SecondBrain

SecondBrain is a full-stack application built with React, Tailwind CSS, TypeScript, Node.js, and MongoDB, designed to help you store, manage, and share your favorite links, notes, tweets, and videos — like a second digital brain.


🚀 Features

  • 🔐 Sign In / Sign Up flow
  • 🎯 Add, view, and organize content (YouTube videos, tweets, notes)
  • 📤 Share your brain with a unique public link
  • 🧩 Clean UI using Tailwind CSS
  • 💾 Secure backend using Express and MongoDB

🛠️ Tech Stack

  • Frontend: React + TypeScript + Tailwind CSS
  • Backend: Node.js + Express + TypeScript + MongoDB

📦 Setup Instructions

1. Clone the Repository

git clone https://github.com/inaveed-git/secondbrain.git
cd secondbrain

2. Setup Backend

cd backend
npm install
  • Rename .env.simple to .env
  • Add your MongoDB connection string and JWT secret in the .env file:
MONGO_URL=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
  • Start the backend server:
npm run dev

Backend runs on http://localhost:3000


3. Setup Frontend

cd frontend
npm install
npm run dev

Frontend runs on http://localhost:5173


🔁 API Routes

🔐 Auth Routes

POST /v1/api/user/signup           // Register user
POST /v1/api/user/login            // Login user

📥 Content Routes (Protected)

POST /v1/api/content/new           // Add new content
GET  /v1/api/content/get           // Get user content

🌐 Brain Share Routes

POST /v1/api/brain/create          // Create public brain share link
GET  /v1/api/brain/:shareLink/get  // Access shared brain by link

🤝 Contributing

This project is complete from the learning perspective — but your contributions are welcome! Feel free to fork, clone, and send a pull request.


📄 License

This project is open-source under the MIT License.


✨ Author

Made with ❤️ by Naveed Khan




About

SecondBrain is a full-stack application built with React, Tailwind CSS, TypeScript, Node.js, and MongoDB, designed to help you store, manage, and share your favorite links, notes, tweets, and videos — like a second digital brain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published