Giter VIP home page Giter VIP logo

starbin's Introduction

Starbin

A hastebin-compatible paste site running on Cloudflare Workers / Pages.

Deployment

To deploy as a Pages project you will need to follow these steps:

  • Fork this repo to an account where you can install GitHub Apps
  • Create an empty KV namespace to store pastes in on the Workers dashboard
  • Create a new Pages project using the Git integration and your forked repo
    • Set an empty echo command as the build command - no actual build is performed
    • Set the build output directory to /static/ to allow Pages to find the website
  • Under the project's settings in the Functions tab set up a new KV namespace binding
    • Set the variable name to STORAGE, the namespace to the namespace from earlier
  • Under the project's Environment Variables settings set up the following variables:
    • DOCUMENT_KEY_SIZE: Number of digits to use for document URLs
    • MAX_DOCUMENT_SIZE: Maximum number of characters allowed per paste
    • DOCUMENT_EXPIRE_TTL: Number of seconds until documents expire

And that's it! You may now set a custom domain if you'd like the site to be available outside of workers.dev

TODO

I did not invest any time into creating my own frontend yet, all static assets are copied from the original haste-server.

starbin's People

Contributors

lostluma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

starbin's Issues

How to self host

I tried to self host this but I am having hard time.
It would be a great help if there was a step by step guide

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.