at main 34 lines 1.4 kB view raw view rendered
1# Development 2 3Your new jumpstart project includes basic organization with an organized `assets` folder and a `components` folder. 4If you chose to develop with the router feature, you will also have a `views` folder. 5 6``` 7project/ 8├─ assets/ # Any assets that are used by the app should be placed here 9├─ src/ 10│ ├─ main.rs # The entrypoint for the app. It also defines the routes for the app. 11│ ├─ components/ 12│ │ ├─ mod.rs # Defines the components module 13│ │ ├─ hero.rs # The Hero component for use in the home page 14│ │ ├─ echo.rs # The echo component uses server functions to communicate with the server 15│ ├─ views/ # The views each route will render in the app. 16│ │ ├─ mod.rs # Defines the module for the views route and re-exports the components for each route 17│ │ ├─ blog.rs # The component that will render at the /blog/:id route 18│ │ ├─ home.rs # The component that will render at the / route 19├─ Cargo.toml # The Cargo.toml file defines the dependencies and feature flags for your project 20``` 21 22### Serving Your App 23 24Run the following command in the root of your project to start developing with the default platform: 25 26```bash 27dx serve --platform web 28``` 29 30To run for a different platform, use the `--platform platform` flag. E.g. 31```bash 32dx serve --platform desktop 33``` 34