From 2462b07b50a3e379b027dfd21020cedc835a17c4 Mon Sep 17 00:00:00 2001 From: UltraLionFr Date: Wed, 20 Aug 2025 17:47:13 +0200 Subject: [PATCH] add README.md --- README.md | 119 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..b3297cd --- /dev/null +++ b/README.md @@ -0,0 +1,119 @@ +# AltBin.dev + +A modern, open-source pastebin built with **Next.js 15**, **TypeScript**, and **PostgreSQL**. +It allows you to create, share, and manage text snippets (pastes) with features like password protection, expiration, and view tracking. + +--- + +## ✨ Features + +- 🔑 **Password-protected pastes** +- 📊 **Dashboard with statistics** (views, size, recent pastes, etc.) +- 🎨 **Beautiful UI** with TailwindCSS + Shadcn +- 🌙 **Dark mode support** +- 🔐 **Discord authentication** (via NextAuth) +- 📥 **Download raw pastes** or copy directly to clipboard +- 📈 **View counters & limits** +- 🛡️ **Secure storage with Prisma + PostgreSQL** + +--- + +## 🛠️ Tech Stack + +- [Next.js 15](https://nextjs.org/) (App Router) +- [TypeScript](https://www.typescriptlang.org/) +- [TailwindCSS](https://tailwindcss.com/) + [shadcn/ui](https://ui.shadcn.com/) +- [Prisma ORM](https://www.prisma.io/) with PostgreSQL +- [NextAuth.js](https://next-auth.js.org/) (Discord provider) +- [Lucide Icons](https://lucide.dev/) +- [Framer Motion](https://www.framer.com/motion/) for animations + +--- + +## ⚡ Getting Started + +### 1. Clone the repository +```bash +git clone https://github.com/YOUR_USERNAME/altbin.dev.git +cd altbin.dev +```` + +### 2. Install dependencies + +```bash +pnpm install +``` + +### 3. Set up environment variables + +Create a `.env` file in the root of the project: + +```env +# Database +DATABASE_URL="postgres://postgres:@:/postgres" + +# Discord OAuth +DISCORD_CLIENT_ID=your_discord_client_id +DISCORD_CLIENT_SECRET=your_discord_client_secret + +# NextAuth +NEXTAUTH_SECRET=your_super_secret_key +NEXTAUTH_URL=http://localhost:3000 +``` + +### 4. Set up the database + +Run Prisma migrations: + +```bash +pnpm prisma migrate dev --name init +``` + +Generate the Prisma client: + +```bash +pnpm prisma generate +``` + +### 5. Start the dev server + +```bash +pnpm dev +``` + +The app should now be running at **[http://localhost:3000](http://localhost:3000)** + +--- + +## 🚀 Deployment + +You can deploy this project on: + +* [Vercel](https://vercel.com/) +* Any Node.js hosting provider with PostgreSQL support + +Make sure to set your `.env` variables on the hosting platform. + +--- + +## 🤝 Contributing + +Pull requests are welcome! +If you want to add a feature or fix a bug, feel free to fork the project and open a PR. + +--- + +## 📜 License + +This project is licensed under the **MIT License**. +You are free to use, modify, and distribute it as you wish. + +--- + +## 👨‍💻 Author + +Built with ❤️ by **[UltraLion](https://github.com/UltraLionfr)** + +``` + +--- \ No newline at end of file