Skip to content

CodeVault is a centralized code vault built with the MERN stack. It helps developers stop rewriting the same logic by providing a secure place to save, tag, and search their most useful code snippets with full syntax highlighting.

Notifications You must be signed in to change notification settings

Anos714/CodeVault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

32 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ CodeVault โ€“ Your Modern Code Snippet Library

CodeVault is a powerful, developer-friendly application designed to store, manage, and share your code snippets efficiently. Built with the MERN stack, it offers a seamless experience with syntax highlighting, instant search, and a beautiful dark-themed UI.

๐Ÿ”— Live Demo: https://codevault-olive.vercel.app/


๐Ÿ“ธ Screenshots & Demo

Home / Dashboard Code Editor (Monaco)
Dashboard Editor
Browse and manage all snippets Add or edit snippets with syntax highlighting
View Snippet Responsive Mobile View
View Page Mobile View
Beautiful code viewer with copy feature Fully responsive on all devices

โœจ Features

  • ๐Ÿ” Secure Authentication โ€“ JWT-based auth with HttpOnly cookies
  • ๐Ÿ“ Full CRUD Support โ€“ Create, read, update, and delete snippets
  • ๐ŸŽจ Syntax Highlighting โ€“ Monaco Editor for writing, syntax highlighter for viewing
  • ๐Ÿ” Advanced Search โ€“ Debounced search by title or language
  • ๐Ÿท๏ธ Tagging System โ€“ Organize snippets with custom tags
  • ๐ŸŒ“ Dark Mode UI โ€“ Clean developer-focused UI with Tailwind CSS
  • ๐Ÿ“‹ One-Click Copy โ€“ Instantly copy code snippets
  • ๐Ÿ”’ Privacy Control โ€“ Public or private snippets

๐Ÿ› ๏ธ Tech Stack

Frontend

  • React.js (Vite)
  • Redux Toolkit
  • Tailwind CSS
  • Framer Motion
  • Lucide React
  • Monaco Editor
  • React Syntax Highlighter

Backend

  • Node.js
  • Express.js
  • MongoDB & Mongoose
  • JWT Authentication
  • Bcrypt
  • Cookie Parser

Deployment

  • Vercel (Frontend & Backend)

๐Ÿš€ Getting Started

Follow these steps to run CodeVault locally.

Prerequisites

  • Node.js (v16+ recommended)
  • MongoDB (Local or MongoDB Atlas)

1๏ธโƒฃ Clone the Repository

git clone https://github.com/YourUsername/CodeVault.git
cd CodeVault

2๏ธโƒฃ Backend Setup

cd server
npm install

Create a .env file inside the server folder:

PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_super_secret_key
NODE_ENV=development
CLIENT_URL=http://localhost:5173

Start the backend server:

npm run dev

3๏ธโƒฃ Frontend Setup

Open a new terminal:

cd client
npm install

Create a .env file inside the client folder:

VITE_API_BASE_URL=http://localhost:5000/api

Start the frontend:

npm run dev


Frontend will run at:
๐Ÿ‘‰ http://localhost:5173

๐Ÿค Contributing

Contributions are always welcome and greatly appreciated!
If you have ideas, improvements, or bug fixes, feel free to contribute.


๐Ÿ› ๏ธ Steps to Contribute

  1. Fork the repository

  2. Create your feature branch

    git checkout -b feature/AmazingFeature

๐Ÿ“ Commit & Submit Changes

After making your changes, follow these steps to submit your contribution:

1๏ธโƒฃ Commit Your Changes

git commit -m "Add AmazingFeature"

2๏ธโƒฃ Push to Your Branch

git push origin feature/AmazingFeature

3๏ธโƒฃ Open a Pull Request ๐Ÿš€

Clearly describe the changes youโ€™ve made

Reference related issues if applicable

๐Ÿ—บ๏ธ Development Roadmap

This roadmap outlines the current progress and future plans for the project.


โœ… Phase 1: MVP (Completed)

Core features required for a functional and stable product.

  • User Authentication (Register / Login)
  • Create, Read, Update, Delete Snippets
  • Syntax Highlighting
  • Basic Search & Filtering
  • Responsive UI

๐Ÿšง Phase 2: Advanced Features (Upcoming)

Enhancements focused on user engagement and better organization.

  • Social Sharing (public snippet links)
  • Likes & Comments
  • Collections / Folders
  • Profile Customization (avatar & bio)
  • Extended Language Support

๐Ÿ”ฎ Phase 3: Pro Features

Advanced integrations and collaboration tools.

  • VS Code Extension
  • GitHub Gist Integration
  • Team Collaboration & Shared Workspaces

๐Ÿ“ž Contact

Created by [Rahul Sain]

GitHub: https://github.com/Anos714

Email: sainrahul374@gmail.com

About

CodeVault is a centralized code vault built with the MERN stack. It helps developers stop rewriting the same logic by providing a secure place to save, tag, and search their most useful code snippets with full syntax highlighting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages