45 lines
946 B
Markdown
45 lines
946 B
Markdown
# Dioxus - [letter.werefox.cafe](https://letter.werefox.cafe)
|
|
|
|
> 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.
|
|
|
|
## Usage
|
|
|
|
### Just build
|
|
|
|
```
|
|
cargo build
|
|
```
|
|
|
|
### Start a `dev-server` for the project:
|
|
|
|
```
|
|
cargo run
|
|
```
|
|
|
|
## 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.
|
|
|
|
(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:
|
|
|
|
```
|
|
cargo build --release
|
|
```
|
|
|
|
## Project Structure
|
|
|
|
```
|
|
.project
|
|
- public # save the assets you want include in your project.
|
|
- src # put your code
|
|
- - utils # save some public function
|
|
- - data # text files that will be read to for data in the app
|
|
- - components # save some custom components
|
|
```
|