Skip to content

dmijares-vccri/azure-nextflow-ui

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nxfutil

nxfutil.png

Full-stack web template in Rust using rust-actix-web-api and rust-leptos-spa templates.

Dev dependencies

Web Assembly build target

# Install wasm32 target
rustup target add wasm32-unknown-unknown

Dev tools

# Install degit
cargo install degit

# Install trunk
cargo install trunk

# Install tailwind
pushd spa && npm install && popd

Setup

# Define the new project's name 
proj_name="my_rust_app"

# Use `this` template 
degit https://github.com/axgonz/rust-web-template $proj_name && pushd $proj_name

# Use frontend and backend templates
degit https://github.com/axgonz/rust-actix-web-api api && rm -r api/.vscode
degit https://github.com/axgonz/rust-leptos-spa spa && rm -r spa/.vscode

In a new terminal called actix

# Start actix-web service
cargo run

In a new terminal called tailwind

pushd spa && npx tailwindcss -i styles/input.css -o styles/tailwind.css --watch

In a new terminal called trunk

# Start trunk dev service
export TRUNK_BUILD_RELEASE=false && trunk serve

Build

# Build backend
cargo build --release

# Build css
pushd spa && npx tailwindcss -i styles/input.css -o styles/tailwind.css --minify && popd

# Build frontend
export TRUNK_BUILD_RELEASE=true && trunk build

# Show build artifacts
ls -lsd target/release/rust-actix-web-api dist

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 98.7%
  • Other 1.3%