The backend for https://rusthub.org, a Graphql Services Server built on Rust Web Stacks: tide, async-graphql, async-std, mongodb, jsonwebtoken, base64 & pulldown-cmark ...
git clone https://github.com/rusthub-org/rusthub.org
cd ./backend
Rename file .env.example
to .env
, or put the environment variables into a .env
file:
ADDR=127.0.0.1
PORT=8200
LOG_LEVEL=Debug
SITE_KID=rusthub.org
SITE_KEY=QiX7Riw8r..... # Replace with your SITE_KEY
CLAIM_EXP=10000000000
GQL_URI=gql
GQL_VER=v1
GIQL_VER=v1i
MONGODB_URI=mongodb://surfer:surfer@127.0.0.1:27017
MONGODB_NAME=kids
PAGE_SIZE=10
Then, build & run:
cargo build
cargo run # or cargo watch -x run
GraphiQL: connect to http://127.0.0.1:8200/gql/v1i with browser.