Files
actix-yew-app-template/template/README.md
2022-04-05 23:15:43 +02:00

1.5 KiB

{{project-name | capitalize}}

AGPL License
Coverage Status CI

{{project-name}} is ...

Features

Installation

Using cargo (for development)

cargo make run

Manual

  1. Get the code
git clone https://github.com/{{gh-username}}/{{project-name}}
  1. Build api and web release assets
cargo make build-release

It will produce a target/release/{{project-name}}-api backend binary and frontend assets in the web/dist directory.

  1. Deploy assets
mkdir -p $DEPLOY_DIR/config
cp -a target/release/{{project-name}}-api $DEPLOY_DIR
cp -a web/dist/* $DEPLOY_DIR
cp -a api/config/{default.toml, prod.toml} $DEPLOY_DIR/config
  1. Run server
cd $DEPLOY_DIR
env CONFIG_FILE=$DEPLOY_DIR/config/prod.toml ./{{project-name}}-api

Using Docker

Build Docker image

docker build -t {{project-name}} .

Run {{project-name | capitalize}} using Docker

docker run --rm -ti -p 8000:8000 project-name

Usage

Access {{project-name | capitalize}} using http://localhost:8000

License

AGPL