Go to file
2022-03-25 19:23:58 +01:00
.idea add http-client 2022-03-25 19:18:55 +01:00
bank add http-client 2022-03-25 19:18:55 +01:00
http-client describe http-client in readme 2022-03-25 19:23:58 +01:00
http-lib add http-client 2022-03-25 19:18:55 +01:00
http-server add http-client 2022-03-25 19:18:55 +01:00
socket-server Implement the http variant of the bank server. 2022-03-18 19:35:34 +01:00
.gitignore initial commit 2022-03-12 16:19:54 +01:00
.gitlab-ci.yml Update .gitlab-ci.yml file 2022-03-19 09:17:31 +00:00
Cargo.lock add http-client 2022-03-25 19:18:55 +01:00
Cargo.toml add http-client 2022-03-25 19:18:55 +01:00
LICENSE Update LICENSE 2022-03-19 11:41:18 +00:00
README.md describe http-client in readme 2022-03-25 19:23:58 +01:00

vesys bank servers and clients

Implementations of a simple bank server for the 2022 vesys class at FHNW.

Please note that the writer is in no way an experienced or even professional rust developer (hence the cloning everywhere) and most of this was written in a hurry. Parts of the code might sneak into your house in bright daylight and marry your cat to run off with them to Greenland or wherever it is they go for their honeymoon.

socket-server

Use an on-the-fly invented byte protocol. Consult the code for documentation.

http-server

An http implementation, using actix-web, wanted to try that for a while now. Again, consult the code for information on how the routes work.

http-client

An experimental client for the http-server, built with rust, yew and the power of web assembly. First time I am trying this, there is probably even more wrong with it than with the server implementations.

Usage

Servers

Run it like you would with any cargo workspace project.

For example, starting the http-server variant, with debug logging and compiled in release mode:

 RUST_LOG=debug cargo run --release --bin http-server

http client

Trunk is used for wasm bundling.

Local development with auto-reload:

trunk serve

Build for release (the built artifacts can be found in dist):

trunk build --release