Skip to content

The Snippets App, provides the space to store your favorite snippets all in one place and use it whenever you want to.

Notifications You must be signed in to change notification settings

Salman-in/Snippet-App

Repository files navigation

Snippets App

The Snippets App is a modern web application built with Next.js 15 that allows users to save, organize, and access their favorite code snippets in one centralized location.


🚀 Getting Started

Prerequisites

Ensure the following are installed:

  • Node.js 18 or later
  • PostgreSQL
  • A package manager: npm, yarn, pnpm, or bun

Installation

  1. Clone the repository
git clone https://github.com/your-username/snippets-app.git
cd snippets-app
  1. Install dependencies
npm install
  1. Set up environment variables

Create a .env file in the root directory:

DATABASE_URL="postgresql://USER:PASSWORD@localhost:5432/snippetsdb"

Replace USER, PASSWORD, and snippetsdb with your PostgreSQL credentials.

  1. Generate and migrate Prisma schema
npx prisma generate
npx prisma migrate dev --name init
  1. Run the development server
npm run dev

Visit http://localhost:3000 in your browser.


✨ Features

  • Create, edit, and delete code snippets
  • Organize snippets by language or category
  • Full-text search and filters
  • Syntax highlighting
  • Responsive design for desktop and mobile
  • Built with Next.js 15 App Router and Server Actions
  • PostgreSQL + Prisma ORM backend

📁 Project Structure

app/            # App Router pages and layout
components/     # Reusable UI components
lib/            # Utility functions
prisma/         # Prisma schema and client
public/         # Static assets
styles/         # Tailwind CSS styles

🧰 Tech Stack

  • Framework: Next.js 15 (App Router, Server Actions)
  • Language: TypeScript
  • Database: PostgreSQL
  • ORM: Prisma
  • Styling: Tailwind CSS
  • UI Library: shadcn/ui

About

The Snippets App, provides the space to store your favorite snippets all in one place and use it whenever you want to.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published