Giter VIP home page Giter VIP logo

denopaste's Introduction

Deno Paste

Deno Paste Docker Pulls License: MIT

A plain text paste service built with Deno and Fresh. ๐Ÿฆ•๐Ÿ‹

denopaste.com screenshot

Features

  • Runs in a single Docker container
  • Syncs pastes to any S3-compatible cloud object storage

Demo

https://denopaste.com

Development

You can start the local development server via:

deno task start

From Docker

To run Deno Paste within a Docker container, mount a volume from your local system to store the sqlite database.

docker run \
  -p 8000:8000 \
  --volume "${PWD}/data:/data" \
  --name denopaste \
  smelnicki/denopaste

You can also use the provided docker-compose.yml file.

docker compose up

From Docker with data replication

If you provide settings for an azure blob storage container, Deno Paste will use Litestream to replicate your data.

PIRSCH_HOSTNAME=YOUR-PIRSCH-HOSTNAME
PIRSCH_TOKEN=YOUR-PIRSCH-TOKEN
LITESTREAM_AZURE_ACCOUNT_KEY=YOUR-ACCESS-KEY
DB_REPLICA_URL=abs://STORAGEACCOUNT@CONTAINERNAME/PATH

docker run \
  -e "PIRSCH_HOSTNAME=${PIRSCH_HOSTNAME}"
  -e "PIRSCH_TOKEN=${PIRSCH_TOKEN}"
  -e "LITESTREAM_AZURE_ACCOUNT_KEY=$LITESTREAM_AZURE_ACCOUNT_KEY" \
  -e "DB_REPLICA_URL=$DB_REPLICA_URL" \
  -p 8000:8000 \
  --name denopaste \
  smelnicki/denopaste

denopaste's People

Contributors

stephenmelnicki avatar

Stargazers

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

Watchers

 avatar

denopaste's Issues

Failed to save text

Hi

I tried deno_paste on Deno Deploy with the SUPABASE_URL and SUPABASE_KEY all set via environment variables,
but got error msg like "Failed to save text. Please try again." when I clicked on "paste".

According to the log:
Error: relation "public.entries" does not exist
at Database.insertEntry (file:///src/utils/database.ts:15:19)
at async POST (file:///src/routes/index.tsx:18:13)
at async https://deno.land/x/[email protected]/mod.ts:112:36
at async Server.#respond (https://deno.land/[email protected]/http/server.ts:219:24)

I there anything I've missed? Maybe I need to create tables in the database in advance to get the app prepared?

Best regards.

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.