I'm gonna make a site to host my poetry at. https://void.werefox.cafe
Go to file
Ada Werefox 0a7de927e3 Another poem. 2024-03-15 20:58:31 +00:00
.vscode Implemented user settings feature at a basic level, need to fix CSS for components. 2023-04-16 21:46:10 -05:00
public Updates to be compatible with recent versions of rocket and dioxus. 2024-03-15 15:53:40 -05:00
src Implemented user settings feature at a basic level, need to fix CSS for components. 2023-04-16 21:46:10 -05:00
templates Update, a new poem. 2023-12-11 04:49:40 +00:00
void-be Updates to be compatible with recent versions of rocket and dioxus. 2024-03-15 15:53:40 -05:00
void-fe Another poem. 2024-03-15 20:58:31 +00:00
.gitignore A lot of work just getting Dioxus to route things properly, moved compile conditions to make less repetition. 2023-04-12 17:25:14 -05:00
Cargo.toml Updates to be compatible with recent versions of rocket and dioxus. 2024-03-15 15:53:40 -05:00
Dockerfile previous and next entries, major refactoring on Dioxus frontend, more reliable routing on backend, some minor style adjustments. 2023-04-11 19:42:46 -05:00
LICENSE Initial commit, lots of templating from the letter-werefox-cafe repo. 2023-04-07 07:41:48 -05:00
README.md Initial commit, lots of templating from the letter-werefox-cafe repo. 2023-04-07 07:41:48 -05:00
Rocket.toml Simplefied dark mode toggle. 2023-04-12 05:42:59 +00:00
docker-compose.yml previous and next entries, major refactoring on Dioxus frontend, more reliable routing on backend, some minor style adjustments. 2023-04-11 19:42:46 -05:00
rustfmt.toml Implemented user settings feature at a basic level, need to fix CSS for components. 2023-04-16 21:46:10 -05:00

README.md

void.werefox.cafe

This will be used to replace my "A Letter To The Void" collection of poems on write.as for hosting my poetry.

Usage

This project works by using a Cargo workspace with two projects void-fe and void-be

Backend

You can develop the backend by simply running the project from the root directory

cargo run

Generally, any commands you'd use for any other standard Rust project will work for this.

Ex:

cargo build

Frontend

If you want to develop the Dioxus frontend, you'll need to do the following:

cargo install dioxus-cli
rustup target add wasm32-unknown-unknown

Then, you should be able to run the development server after moving into the rust-letter-fe directory.

(Linux example)

cd rust-letter-fe && dioxus serve

If you'd link to know about how to use dioxus-cli, you should run dioxus --help or reference the official documentation.*

* At the time of writing this, the link to the documentation is broken. If you'd like to see what I normally use to run the project, here's an example: dioxus serve --hot-reload --port [port #]

Running

Here are some ways you can run the project

Cargo

You can either do the standard run --release

cargo run --release

Or, referencing the Dockerfile, you can install and then run.

cargo install --path .
rust-letter

Project Structure

.dioxus-letter-werefox-cafe
|- data             # text files that will be read to for data in the app
|- public           # save the assets you want include in your project.
|- void-be
|\
||- src             # source code folder for backend
|- void-fe
|\
||- src             # source code folder for frontend
||\
|||- utils          # save some public function
|||- components     # save some custom components
|- src              # code for running the workspace
|- templates        # put template files here, right now just using handlebar