Skip to content

About

Create, Edit, Customize and share your code snippets with your Friends, Family and Co-Workers in just a few clicks.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Code Bin

Create, Edit, Customize and share your code snippets with your Friends, Family and Co-Workers in just a few clicks.

Stack

Getting started

cp .env.example .env.local   # fill in your Supabase and Clerk keys
npm install
npm run dev

Dokploy / Docker

Deploy this repository with the Dockerfile at the project root. The container listens on 0.0.0.0:3091; set the application's container port to 3091 in Dokploy. Add CLERK_PUBLISHABLE_KEY and CLERK_SECRET_KEY as runtime environment variables in Dokploy; the publishable key is public, but Clerk needs it at runtime for server rendering and middleware. Set Supabase runtime values (SUPABASE_URL and SUPABASE_SECRET_KEY, or SUPABASE_PUBLISHABLE_KEY) and PASTE_UNLOCK_SECRET there as well. NEXT_PUBLIC_SITE_URL and optional NEXT_PUBLIC_GA_ID can be supplied as Docker build arguments. Supabase and Clerk credentials are not needed during the Docker build.

Script What it does
npm run dev Start the dev server
npm run build Production build
npm run lint ESLint
npm run typecheck TypeScript without emit
npm run format Prettier

Database

The app uses the existing Pastes table: id, code, title, description, language, public, private, createdAt, userId, pasteId, pastePassword, hasVanity. Paste passwords are stored as bcrypt hashes; older plain-text passwords are upgraded the first time someone unlocks the paste.

About

Create, Edit, Customize and share your code snippets with your Friends, Family and Co-Workers in just a few clicks.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages