mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
d514e456bf364b1dbdbd7e67938ca609c2362468
SharpbinV3
Sharpbin is a pastebin-style website built with ASP.NET Core and SvelteKit.
Features
- User authentication and account management.
- Syntax highlighting for various programming languages.
- Private pastes with client-side encryption.
- Raw text serving for easy sharing and scripting.
- Paste editing including content, syntax, title, and expiration.
- Configurable paste expiration.
- Server-side paste compression to save storage.
- Captcha support via Cloudflare Turnstile.
Project Structure
- SharpbinV3.Server: Backend API built with C# and ASP.NET Core. Refer to its README for server-side development and configuration.
- SharpbinV3.Client: Frontend application built with SvelteKit and TypeScript. Refer to its README for client-side development and setup.
Getting Started
The easiest way to run SharpbinV3 is using Docker Compose.
- Ensure Docker and Docker Compose are installed.
- Clone the repository.
git clone https://github.com/whoswhip/Sharpbin.git
- Run the following command in the root directory:
docker-compose up -d
Configuration
You can configure the application using environment variables. When using Docker Compose, these can be set in the docker-compose.yml file.
Backend (SharpbinV3.Server)
ConnectionStrings__DefaultConnection: SQLite connection string (e.g.,Data Source=/app/data/sharpbin.db).JwtSettings__Secret: A secure string used for signing JWT tokens.AuthSettings__CF_Turnstile_SecretKey: Your Cloudflare Turnstile secret key.AuthSettings__CF_Turnstile_SiteKey: Your Cloudflare Turnstile site key.AuthSettings__First_User_Admin: Gives the first user the admin role, it is recommended to disable this after use.ASPNETCORE_ENVIRONMENT: Set toProductionorDevelopment.
Frontend (SharpbinV3.Client)
VITE_API_URL: The URL of the backend API (e.g.,http://localhost:8080).
The frontend will be accessible at http://localhost:5173.
Description
Mirror of https://github.com/whoswhip/Sharpbin
https://sharpbin.cc
Readme
GPL-3.0
2.2 MiB
Languages
C#
49.5%
Svelte
35.3%
TypeScript
13.3%
HTML
1.1%
CSS
0.3%
Other
0.5%