/Deftbin

A simple, open-source code sharing web application made as a more complex alternative to Pastebin and Hastebin.

Primary LanguageSvelteGNU Lesser General Public License v3.0LGPL-3.0

Deftbin

A simple, open-source code sharing web application made as a more complex alternative to Pastebin and Hastebin.

Table of Contents

Features

  • Syntax highlighting
  • Upload API
  • Compatible with Hastebin API
  • Themes
  • Customizable
  • Language indicators

Installation

Note:

  • The main branch is the latest stable release.
  • The dev branch is the latest development version.
  • You need Node.js 12 or higher to run Deftbin.

Basic

  1. Clone the repository
  2. Install the dependencies in both the backend and frontend directories using npm install.
  3. Run the backend using npm start in the backend directory. (this can be done using your preferred process manager)
  4. Build the frontend using npm run build in the frontend directory.
  5. Run the frontend using node build/index.js in the frontend directory. (this can be done using your preferred process manager)
  6. You're done!

Docker

  1. Clone the repository
  2. Adapt the example docker-compose.yml file to your needs.
  3. Run docker-compose up -d to start the containers.
  4. You're done!

License

Deftbin is licensed under the LGPL 3.0 license.