This repository contains everything needed to build and run the (WIP) remote access server for all Warp-Cargers and Tinkerforge ESP32-/ESP32-Ethernet-Bricks.
.
├── backend
├── db_connector
├── docker
├── frontend
└── wg-webclient
backend:
The http backend server and relay server between the charger and the users browser
db_connector:
A crate containing the types needed to interface with the database server
docker:
Files to run and build the docker containers
frontend:
Website that is served by the webserver
wg-webclient:
The Wireguard implementation containing also a network stack and Http and Websocket client.
Rust toolchain: https://www.rust-lang.org/tools/install
Node: https://nodejs.org/en
Wasm-pack: https://github.com/rustwasm/wasm-pack
docker: https://www.docker.com/get-started/
For the production build only docker is needed since everything is build in a container.
certs
directory in docker/nginx
and place a X.509 certificate and key in pem format named cert.pem
and key.pem
inside.wasm-pack build
inside wg-webclient
.npm install && npm run build
inside remote-access-page
.docker compose -f docker-compose-dev.yml up --build
inside docker
.cargo run
inside backend
.docker compose up
inside the docker
directory.