Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .editconfig

This file was deleted.

7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,19 @@ repos:
- --fix=lf

- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.12.0
rev: v2.15.0
hooks:
- id: pretty-format-yaml
exclude: provision/.*$
args:
- --autofix
- --indent
- '2'
- id: pretty-format-rust
args:
- --autofix
- --manifest-path
- webapp-rust/Cargo.toml
- id: pretty-format-golang
args:
- --autofix
Expand Down
46 changes: 44 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,53 @@ To deploy and for trying it, a number of steps have to be done:

```bash
for item in cpu ip date time; do
echo "Requesting of item $item: ";
echo "\nRequesting of item $item:\n";
curl -s -L --insecure http://localhost:8080/$item | python -m json.tool;
done
```
and watch the output

and watch the output. You shall see something like:

```bash

Requesting of item cpu:

{
"type": "CPU_AMOUNT",
"payload": "2"
}

Requesting of item ip:

{
"type": "IP_V4",
"count": "EVEN",
"payload": [
{
"name": "eth0",
"ip": "10.0.2.15"
},
{
"name": "lo",
"ip": "127.0.0.1"
}
]
}

Requesting of item date:

{
"type": "DATE_NOW",
"payload": "2024 10 08"
}

Requesting of item time:

{
"type": "TIME_NOW",
"payload": "02:57:30"
}
```

5. Once it's done, to remove the VM, the command is helpful:

Expand Down
22 changes: 22 additions & 0 deletions choosing-tech.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Awesome:
* https://github.com/rust-unofficial/awesome-rust?tab=readme-ov-file#web

# Web servers:
* https://github.com/tokio-rs/tokio
* https://github.com/actix/actix-web
* https://github.com/miketang84/sapper_examples/tree/master/json_example
* https://github.com/saru-tora/anansi

# JSON:
* https://github.com/serde-rs/json
* https://github.com/cloudwego/sonic-rs
* https://github.com/rustadopt/jzon-rs

# System environment
* https://rust-lang.github.io/hashbrown/num_cpus/index.html
* https://lib.rs/crates/systemstat
* https://docs.rs/sysinfo/0.15.0/sysinfo/trait.SystemExt.html#tymethod.get_total_memory

# CLI
* https://github.com/ksk001100/seahorse
* https://github.com/clap-rs/clap
2 changes: 2 additions & 0 deletions webapp-rust/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SCM syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
5 changes: 5 additions & 0 deletions webapp-rust/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

# pixi environments
.pixi
*.egg-info
target
Loading