A simple pastebin made with web7 mainly made as a sample project. Utilizes Svelte and TailwindCSS for frontend. Not ready for production use yet.
If you really want to use this, I recommend running it inside Docker.
Currently there's no prebuilt image, so you'll have to build it on your own.
Clone this repo and just use docker build -t bartosz11/bpasted:latest .
to build it.
Next, create a volume where data will be stored. (ex. docker volume create pastebin-data
)
Then you can use docker run -d --name pastebin -v pastebin-data:/home/container -p 4334:4334 bartosz11/bpasted:latest
to start the container.
After starting, you can visit http://localhost:4334 and use the instance.
Alternatively, you can use docker-compose. An example docker-compose.yml is available in this repository.
Or you can just run it as any other JAR file. JDK 17 is required to build one.
Clone this repo, use ./gradlew shadowJar
. Your new jar will be out in build/libs
directory.
Then, you can just run it with java -jar pastebin.jar
.