Note: Install the following before you can use the template generator.
workspace (root)
├── Cargo.toml
│
├── server <-- Generate Template this from **server_template**
│ └── .env.example
│ └── rust-toolchain.toml
│ └── Cargo.toml
│ └── README.md
│
├── frontend
│
└── services
cd <workspace_root>
cargo workspaces init .
or you can simply create a Cargo.toml
with this content
[workspace]
resolver = "2"
members = [
server, # <- add this
# add here services here after you generated it
]
cargo generate --git codeitlikemiley/server_template --name server
cd server
cargo build
cargo test
cargo doc --open
cargo run -p server
To add more services please check this Services Template Repository
If you need to make changes to the template, please submit a pull request.