You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A full-stack web application to create, organize, search, and share reusable code snippets with syntax highlighting and tag-based filtering.
Features
Create and edit code snippets with language-specific syntax highlighting
Tag snippets for easy categorization and filtering
Full-text search across snippet titles, descriptions, and code
Copy-to-clipboard with a single click
User authentication (register/login) with JWT and personal snippet collections
Tech Stack
Frontend: React 18, Vite 5
Backend: Node.js 20, Express 5 (ESM)
Database: PostgreSQL 16
Auth: JWT (jsonwebtoken v9), bcryptjs
Prerequisites
Node.js >= 20.x
PostgreSQL >= 16.x
Getting Started
# Clone the repository
git clone https://github.com/Basant1Saini/Code_Snippet_Manager.git
cd Code_Snippet_Manager
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env
# Edit .env with your database credentials and JWT secret# Run database migrations
npm run db:migrate
# Start development server (runs client + server concurrently)
npm run dev