2023-03-28 08:21:31 -05:00
# Dioxus - [letter.werefox.cafe](https://letter.werefox.cafe)
2023-03-29 07:43:39 -05:00
> A re-implementation of the Valentine's Day site I made, but using Rust's [Dioxus](https://dioxuslabs.com/) crate and [Rocket](https://rocket.rs/) crate.
2023-03-28 08:21:31 -05:00
## Usage
2023-03-29 07:43:39 -05:00
### Just build
2023-03-28 08:21:31 -05:00
```
2023-03-29 07:43:39 -05:00
cargo build
2023-03-28 08:21:31 -05:00
```
### Start a `dev-server` for the project:
```
2023-03-29 07:43:39 -05:00
cargo run
2023-03-28 08:21:31 -05:00
```
2023-03-29 07:43:39 -05:00
## Ignore This Section
> I need to set things up so you can run the Dioxus dev server wothout launching rocket. I'll figire that out later.
2023-03-28 08:21:31 -05:00
(or, I personally use the following since port `8080` is usually being used and I want hot reloading)
```
dioxus serve --hot-reload --port 8234
```
### Package this project:
```
2023-03-29 07:43:39 -05:00
cargo build --release
2023-03-28 08:21:31 -05:00
```
## Project Structure
```
.project
- public # save the assets you want include in your project.
- src # put your code
- - utils # save some public function
2023-03-28 11:10:06 -05:00
- - data # text files that will be read to for data in the app
2023-03-28 08:21:31 -05:00
- - components # save some custom components
```