Skip to content

Latest commit

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date

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_stringJWT_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 userPOST/v1/api/user/login// Login user

📥 Content Routes (Protected)

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

🌐 Brain Share Routes

POST/v1/api/brain/create// Create public brain share linkGET/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

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages