mzoon
is a MoonZoon CLI tool.
_
You'll be able to install or update it with Cargo:
cargo install --locked mzoon
Note: Faster installation options will be added later.
- Example:
mzoon new my_project
- Creates a new directory with a MoonZoon project.
- Question: Do you think a code tour would be useful for you?
- Note: Not implemented yet, use MoonZoon/demo as a starting project.
- Example:
mzoon start
- Compiles the app in the debug mode and then starts the Moon's server.
- Both Moon and Zoon apps are automatically recompiled on a file change.
- The Moon app auto-reloads the Zoon app on a change.
- Optional parameters:
--release
/-r
- Example:
mzoon start --release
- Compiles in the release mode and compress frontend files.
- Example:
--open
/-o
- Example:
mzoon start --open
- Opens the Zoon's URL in a new browser tab (e.g.
localhost:8080
) - Note: Not implemented yet.
- Example:
- Example:
mzoon build
- Compiles the app in the debug mode.
- Optional parameters:
--release
/-r
- Example:
mzoon build --release
- Example:
- The configuration file located in the app root directory.
port = 8080
# port = 8443
https = false
cache_busting = true
[redirect_server] # useful for HTTP -> HTTPS redirect
port = 8081
enabled = false
[watch]
frontend = [
"frontend/Cargo.toml",
"frontend/src",
]
backend = [
"backend/Cargo.toml",
"backend/src",
]
-
"What about other commands like
deploy
,test
,generate
, etc.?"- Other commands will be added later.
-
"How can I change the port number or enable HTTPS?"
-
For development: Update settings in
MoonZoon.toml
(seeMoonZoon.toml
above or/examples/counters/MoonZoon.toml
) -
For production: Set environment variables (see the function
load_config
in/crates/moon/src/lib.rs
)
-
-
"Some commands or parameters mentioned above don't work!"
- They are probably not implemented yet.
-
"What is a new project file structure?"
- See the content of MoonZoon/demo to have an idea.