Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 867 Bytes

README.md

File metadata and controls

46 lines (34 loc) · 867 Bytes

Frontend: web application server

The frontend for https://rusthub.org, a Web Application Server built on Rust Web Stacks: tide, async-std, fluent, graphql_client, surf, rhai, handlebars, lettre ...

Build & run

git clone https://github.com/rusthub-org/rusthub.org
cd ./frontend

Rename file .env.example to .env, or put the environment variables into a .env file:

DOMAIN=rusthub.org
ADDR=127.0.0.1
PORT=7200
LOG_LEVEL=Debug

GQL_PROT=http
GQL_ADDR=127.0.0.1
GQL_PORT=8200
GQL_URI=gql
GQL_VER=v1
GIQL_VER=v1i

EMAIL_SMTP=<smtp.server>
EMAIL_FROM=<email_account>
EMAIL_USERNAME=<username>
EMAIL_PASSWORD=<password>

Create a directory for uploading files

mkdir -p ./files/creations

Then, build & run:

cargo build
cargo run # or cargo watch -x run

WebUI: connect to http://127.0.0.1:7200 with browser.