Go to file
Chris W 5e2be71210
Docker / build (push) Has been cancelled Details
better permissions
2024-01-03 09:21:48 -07:00
.github/workflows better permissions 2024-01-03 09:21:48 -07:00
config docker support 2024-01-02 20:09:05 -07:00
db/migrations Rewrite in Crystal as a 0x0 clone 2024-01-02 17:54:12 -07:00
docker docker improvements; use binaryfileresponse 2024-01-03 09:10:37 -07:00
public docker improvements; use binaryfileresponse 2024-01-03 09:10:37 -07:00
spec Rewrite in Crystal as a 0x0 clone 2024-01-02 17:54:12 -07:00
src docker improvements; use binaryfileresponse 2024-01-03 09:10:37 -07:00
.dockerignore docker improvements; use binaryfileresponse 2024-01-03 09:10:37 -07:00
.editorconfig Rewrite in Crystal as a 0x0 clone 2024-01-02 17:54:12 -07:00
.gitignore Rewrite in Crystal as a 0x0 clone 2024-01-02 17:54:12 -07:00
Dockerfile docker improvements; use binaryfileresponse 2024-01-03 09:10:37 -07:00
LICENSE Rewrite in Crystal as a 0x0 clone 2024-01-02 17:54:12 -07:00
README.md docker support 2024-01-02 20:09:05 -07:00
shard.lock docker improvements; use binaryfileresponse 2024-01-03 09:10:37 -07:00
shard.yml docker improvements; use binaryfileresponse 2024-01-03 09:10:37 -07:00

README.md

Paste69

This project has undergone several changes, but here's where we are now: Paste69 is a clone of the popular pastebin service 0x45.st, but written in Crystal using the Athena framework rather than in Python with Flask.

Installation

Installation requires Crystal and Postgres. Other databases might be supported in the future.

Clone this repo:

git clone https://github.com/watzon/paste69

Install dependencies:

shards install

Copy and modify the config file:

cp config/config.example.yml config/config.yml
vim config/config.yml

Build the executables, migrate the database, and run the server:

shards build
./bin/cli db:migrate # this assumes the dabase exists, if not run db:create first
./bin/server

Alternatively, you can use Docker to make things quicker:

docker build -v ./uploads:/app/uploads --tag paste69 ./docker
docker run -d -p 8080:8080 paste69

Development

Feel free to make pull requests!

Contributing

  1. Fork it (https://github.com/watzon/paste69/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors