Skip to content

Second Brain – full‑stack digital knowledge hub for saving links, tweets, videos and docs with smart tags, instant search, shareable collections. React 18 + TypeScript + Vite + Tailwind | Node.js + Express + MongoDB | Auth with JWT | Deployed: Vercel (FE), Render (BE).

License

Notifications You must be signed in to change notification settings

Jimil1407/brainly-app

Repository files navigation

🧠 Second Brain - Your Digital Knowledge Hub

Second Brain Logo

Organize, save, and share your digital knowledge with ease


📖 Table of Contents


✨ Features

🎯 Core Functionality

  • 🔗 Link Management: Save and organize web links, tweets, videos, and documents
  • 🏷️ Smart Tagging: Categorize content with custom tags for easy discovery
  • 🔍 Quick Search: Find your saved content instantly
  • 📱 Responsive Design: Works seamlessly on desktop, tablet, and mobile

🔐 Authentication & Security

  • 🔒 Secure Authentication: JWT-based user authentication
  • 👤 User Profiles: Personal content management
  • 🔐 Password Protection: Secure password handling

🌐 Sharing & Collaboration

  • 🔗 Shareable Links: Generate public links to share your content collections
  • 📤 Bulk Sharing: Share multiple items at once
  • 🌍 Public Access: Anyone can view shared content without registration

🎨 User Experience

  • ⚡ Fast Performance: Optimized with Vite and modern React patterns
  • 🎨 Modern UI: Clean, intuitive interface with Tailwind CSS
  • 📱 Mobile-First: Responsive design that works on all devices
  • 🔄 Real-time Updates: Instant feedback and state management

🚀 Live Demo

Try it out now! 👉 Second Brain App


🛠️ Tech Stack

Frontend

  • React 18 - Modern UI library with hooks
  • TypeScript - Type-safe development
  • Vite - Lightning-fast build tool
  • Tailwind CSS - Utility-first CSS framework
  • React Query - Server state management
  • React Hot Toast - Beautiful notifications
  • Lucide React - Beautiful icons

Backend

  • Node.js - JavaScript runtime
  • Express.js - Web framework
  • MongoDB - NoSQL database
  • JWT - Authentication
  • Bun - Fast JavaScript runtime
  • TypeScript - Type safety

DevOps & Deployment

  • Vercel - Frontend hosting
  • Render - Backend hosting
  • GitHub - Version control

⚡ Quick Start

Prerequisites

  • Node.js (v18 or higher)
  • Bun (v1.2.10 or higher) - Install Bun
  • MongoDB - Local or cloud instance

One-Command Setup

# Clone the repository
git clone https://github.com/Jimil1407/brainly-app.git
cd brainly-app

# Install dependencies and start both servers
npm run dev

This will start both frontend and backend servers automatically!


🔧 Installation

1. Clone the Repository

```bash
git clone https://github.com/Jimil1407/brainly-app.git

cd brainly-app


### 2. Backend Setup
```bash
cd backend
bun install

Create a .env file in the backend directory:

MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret_key
PORT=3000

3. Frontend Setup

cd frontend
npm install

4. Start Development Servers

Option A: Start Both Servers

# From the root directory
npm run dev

Option B: Start Separately

# Terminal 1 - Backend
cd backend
bun run dev

# Terminal 2 - Frontend
cd frontend
npm run dev

5. Access the Application


📁 Project Structure

brainly-app/
├── 📁 frontend/                 # React frontend application
│   ├── 📁 src/
│   │   ├── 📁 components/      # React components
│   │   │   └── 📁 ui/          # UI components
│   │   ├── 📁 services/        # API services
│   │   └── 📁 main.tsx         # App entry point
│   ├── 📁 public/              # Static assets
│   └── package.json
├── 📁 backend/                  # Node.js backend API
│   ├── 📁 src/
│   │   ├── 📁 middleware/      # Express middleware
│   │   ├── 📁 schema/          # Database schemas
│   │   └── index.ts            # Server entry point
│   └── package.json
├── 📁 docs/                     # Documentation
└── README.md

🔐 Environment Variables

Backend (.env)

# Database
MONGODB_URI=mongodb://localhost:27017/second-brain

# Authentication
JWT_SECRET=your-super-secret-jwt-key

# Server
PORT=3000
NODE_ENV=development

Frontend (.env)

# API Configuration
VITE_API_URL=http://localhost:3000/api/v1

🚀 Deployment

Frontend (Vercel)

  1. Connect your GitHub repository to Vercel
  2. Set build command: cd frontend && npm run build
  3. Set output directory: frontend/dist
  4. Add environment variables in Vercel dashboard

Backend (Render)

  1. Connect your GitHub repository to Render
  2. Set build command: cd backend && bun install
  3. Set start command: cd backend && bun run start
  4. Add environment variables in Render dashboard

Environment Variables for Production

# Frontend
VITE_API_URL=https://your-backend-url.onrender.com/api/v1

# Backend
MONGODB_URI=your-production-mongodb-uri
JWT_SECRET=your-production-jwt-secret
NODE_ENV=production

🤝 Contributing

We welcome contributions! Here's how you can help:

1. Fork the Repository

git clone https://github.com/Jimil1407/brainly-app.git
cd brainly-app

2. Create a Feature Branch

git checkout -b feature/amazing-feature

3. Make Your Changes

  • Follow the existing code style
  • Add tests for new features
  • Update documentation

4. Commit and Push

git commit -m "Add amazing feature"
git push origin feature/amazing-feature

5. Create a Pull Request

  • Describe your changes clearly
  • Include screenshots if applicable
  • Reference any related issues

Development Guidelines

  • Code Style: Use Prettier and ESLint
  • Commits: Use conventional commit messages
  • Testing: Write tests for new features
  • Documentation: Update README for new features

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

Made by [Jimil Digaswala]

GitHub LinkedIn Twitter

⭐ Star this repository if you found it helpful!

About

Second Brain – full‑stack digital knowledge hub for saving links, tweets, videos and docs with smart tags, instant search, shareable collections. React 18 + TypeScript + Vite + Tailwind | Node.js + Express + MongoDB | Auth with JWT | Deployed: Vercel (FE), Render (BE).

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published