Skip to content

greenhat616/pastebin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PasteBin

A lightweight and modern paste bin and url shortener.

Features

😋 Next.js 14 with App Directory support

  • RSC (React Server Component) for global state hold and data fetching
  • React Server Actions for forms mutation
    • A React style full stack solution, a alternative to tRPC

🌐 I18n with next-intl 3

🔐 Auth with next-auth 5, including full OAuth support and basic credentials.

  • next-auth with prisma adapter, so that it is not support Edge environment in api route.
  • Credentials password hashed with argon2

😏 Auto Imports with unplugin-auto-import and unplugin-icons

  • Necessary Next.js components, utils, hooks, and icons are auto imported, so that you don't need to import them manually.

🛡️ Validation with zod

💎 Database ORM with prisma

  • Upcoming multi-drivers support, including PostgreSQL, MySQL, SQLite, SQL Server, and MongoDB

⚛️ UI with Chakra UI

⚙️ CSS utils library UnoCSS, use Tailwind CSS instead.

  • UnoCSS is a better choice for Tailwind CSS, but there are issues blocked the use in webpack or postcss, waiting for the fix.

🪛 Hooks library, provided by react-use and ahooks

📦 Package management with bun

⚡ Syntax highlight with shikiji

🧿 Environment variables providing and validating with @t3-oss/env

🌈 TypeScript native support

👮‍♂️ Lints and CI process with husky and lint-staged, checking via eslint, tsc, prettier, and stylelint

Installation

You should define database related environment variables in .env.local file before running the app.

It is required by prisma to generate database schema and types.

bun i # Install dependencies and generate database schema and types

Development

bun dev

Build

bun run build

Preview

bun start

About

A lightweight and modern paste bin and url shortener.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published