# guile-pastebin A very simple pastebin written in Guile Scheme. ## How to run Execute one of the following commands in the root of repository: ``` guile -L modules scripts/pastebin [OPTIONS] GUILE_LOAD_PATH=modules scripts/pastebin [OPTIONS] ``` Then navigate your web browser at `http://localhost:8080`. By default, pastebin listens on all IPv4 addresses (`0.0.0.0`) and runs on port `8080`. These can be changed by passing the command line options `--addr` and `--port`, respectively. `` is a writable filesystem location you want to use to store pastes. If it doesn't exist, it will be created. It was tested on Guile 3.0.9. Many thanks to the Guile development team for such great software. ## API - `/` -- show top 5 paste list - `/post` -- create paste - method: POST only - type: `multipart/form-data` - fields - `text` -- the paste content - `showUrl=1` -- to show the raw URL after paste - `/raw/` -- get paste content - method: GET only ## Paste a file from command line Paste a text file from command line and get a URL back: `curl -F "text=