https://github.com/djedou/duid_template
duid template
https://github.com/djedou/duid_template
Last synced: 2 months ago
JSON representation
duid template
- Host: GitHub
- URL: https://github.com/djedou/duid_template
- Owner: djedou
- Created: 2023-06-17T07:17:58.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-28T20:58:19.000Z (almost 2 years ago)
- Last Synced: 2025-01-29T04:26:33.864Z (4 months ago)
- Language: Rust
- Size: 2.78 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# duid_template
duid template## Install
```
cargo install cargo-duid-app
```
## Create project
```
cargo duid-app init --name
```
## Develop your project
```
cd
cargo duid-app dev
```## Run develop server
Open another terminal
```
cargo duid-app serve // default --host="0.0.0.0" --port=3000
cargo duid-app serve --host --port
```## Build your project
```
cargo duid-app build
```## Run production server
```
cargo duid-app deploy // default --host="0.0.0.0" --port=3000
cargo duid-app deploy --host --port
```## NB:
The folder **./src/app** should have a file called **page.rs** which represent **/** the **root path of your application**.
Each folder in the directory **./src/app** represent a **path**.
Each folder in the directory **./src/app** should have the file called **page.rs**.
Each **page.rs** should look like this format
```
use wasm_bindgen::prelude::*;#[wasm_bindgen]
pub fn duid() {
// This is the entry point of this page.
// your code goes in this function
}
```