app | ||
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
justfile | ||
LICENSE | ||
README.md |
🐰 fluffle
Fluffle is a familiar Markdown pastebin-y site :)
Since Tetratto is used as a backend, you'll obviously need to create an app at https://tetratto.com/developer. Once you've created the app, scroll down to "Secret key" and roll the key. Copy the key since you'll need it for later.
Usage
Once you've cloned the repository, cd into the app
directory and run cargo run -r
.
Before you run the server, however, you should create a .env
file to store your API key (that you rolled earlier). In the .env
file, put the following:
API_KEY=<your key>
So if your key was "ABCD123", you would have:
API_KEY=ABCD123
Once this file is in place, you can safely run the server. You can also optionally add a PORT
variable in there to change the port number. If you don't change the port, you can find the server at http://localhost:9119
.
It's important to note that you're fairly limited on app storage without the Tetratto developer pass. You can manage your billing settings at https://tetratto.com/settings#/account/billing.
Customization
You may notice the public
and templates_src
directories inside of app/
. If you cd into a fresh directory and copy and paste these directories, you're able to edit any file within them and run the binary from that new directory to have it read these files.
You can build (without running) for release using the following command:
cargo build -r
Once you've built the binary, it'll be located at (from the root fluffle/
directory) target/release/fluffle
.
All templates are compiled with nanoneo, so it's recommended that you familiarize yourself with that syntax.
Attribution
Fluffle is licensed under the AGPL-3.0 license. Tetratto is also licensed under the AGPL-3.0 license.