An open API service indexing awesome lists of open source software.

https://github.com/djedou/duid_template

duid template
https://github.com/djedou/duid_template

Last synced: 2 months ago
JSON representation

duid template

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
}
```