An open API service indexing awesome lists of open source software.

https://github.com/suhelahmedprojectspace/codevault

CodeVault is a developer-centric platform to save, manage, and share code snippets, blogs, and portfolios with public/private access and real-time notifications
https://github.com/suhelahmedprojectspace/codevault

auth0 docker next postgresql prisma react schadcn tailwindcss turborepo typescript

Last synced: 3 months ago
JSON representation

CodeVault is a developer-centric platform to save, manage, and share code snippets, blogs, and portfolios with public/private access and real-time notifications

Awesome Lists containing this project

README

          

# ๐Ÿš€ CodeVault


CodeVault Logo

![License](https://img.shields.io/github/license/suhelahmedprojectspace/codevault?style=flat-square)
![Status](https://img.shields.io/badge/status-active-brightgreen?style=flat-square)
![Tech](https://img.shields.io/badge/built%20with-Next.js%20%7C%20Prisma%20%7C%20TailwindCSS%20%7C%20ShadCN-informational?style=flat-square)

**CodeVault** is a modern, developer-first platform designed to **create, manage, and showcase code snippets** with precision and elegance.
It includes features like portfolio creation, real-time notifications, advanced filtering, pagination, and role-based access control.

> Built using a full-stack modern tech stack to elevate your developer workflow.

---

## ๐ŸŒŸ Features

- ๐Ÿงฉ **CRUD Snippets** โ€“ Create, update, and delete code snippets
- ๐Ÿงฉ **CRUD Blog** โ€“ Create, update, and delete content
- ๐Ÿงฉ **Beautiful Blog UI โ€“ With Like and comment functionality Estimated reading time**
- ๐Ÿ’ผ **Portfolio Builder** โ€“ Showcase selected snippets in a clean UI
- ๐Ÿ” **Advanced Filtering & Search** โ€“ Search by title, tag, language, or framework
- ๐Ÿ“„ **Pagination** โ€“ Efficient browsing for large snippet libraries
- ๐Ÿ“Š **Dashboard** โ€“ Visual stats and snippet activity
- ๐Ÿ“ฌ **Access Request Notifications** โ€“ Real-time alerts via pooling
- ๐Ÿ” **Public/Private Visibility** โ€“ Control who can access your code
- ๐ŸŽจ **Syntax Highlighting** โ€“ VS Code-like editor with Monaco
- ๐Ÿ“‹ **Clipboard Support** โ€“ Paste from clipboard, clear code editor
- ๐Ÿ›ก๏ธ **Role-Based Access Control** โ€“ Admin and Author roles

---

## ๐Ÿงช Tech Stack

| Layer | Tech |
| ------------ | -------------------------------------------------------------- |
| **Frontend** | `Next.js (App Router)` ยท `Tailwind CSS` ยท `ShadCN UI` ยท `CSS3` |
| **Backend** | `Next.js API Routes` ยท `Prisma ORM` ยท `Auth.js` ยท `bcrypt` |
| **Editor** | `Monaco Editor` (VS Code-like experience) |
| **Realtime** | `Native WebSocket` for instant notifications |
| **Database** | `PostgreSQL` (via Prisma) |
| **Others** | `Axios` ยท `Framer Motion` ยท `Radix UI` ยท `Zod` |

---

## ๐Ÿ“ Project Structure

````bash
/app # Next.js App Router
/(auth) # Login/Register logic
/dashboard # Snippet management UI
/portfolio # Portfolio builder
/api
/snippet # CRUD APIs for snippets

/components # Reusable UI components
/snippet # Snippet cards, editors, previews
/dashboard # Stats, tables, pagination
/notifications # Toasts and access requests

/constants # Enums, route lists, snippet filters
/lib # Helper and utility functions
/styles # Global CSS & Tailwind configurations
/types # TypeScript types and interfaces
/utils # Utility functions (slugify, debounce, etc.)
/prisma # Prisma schema & migration files
/public # Static assets and images

# ๐Ÿš€ Getting Started

Foobar is a Python library for dealing with word pluralization.

## Installation

```bash
git clone https://github.com/suhelahmedprojectspace/codevault.git
cd codevault
````

## Install Dependencies

```bash
npm install
# or
yarn install
```

## Setup Environment Variables

#### Create a .env file in the root:

```bash
DATABASE_URL=your_database_url
NEXTAUTH_SECRET=your_secret_here
```

## Run Database Migrations

```bash
npx prisma migrate dev --name init
```

## ๐Ÿค Contributing

`bash Contributions, suggestions, and feature requests are welcome! Feel free to open issues or submit a pull request.`

## ๐Ÿ“ฌ Connect

###### GitHub: @suhelahmedprojectspace

### Built with โค๏ธ by Sahel โ€” for developers who love clean code and beautiful UIs.