Skip to content

Latest commit

 

History

History
76 lines (50 loc) · 1.66 KB

README.md

File metadata and controls

76 lines (50 loc) · 1.66 KB

Vulpix

An image processing web app built using vulpix.
Used in production at Apollo Agriculture to process and serve images securely from aws.

The repo also acts as an example usage vulpix library building an app using axum

setup

install from rust or

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

install image magick

brew install imagemagick

aws env variables

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=

dev

cargo install cargo-watch
cargo watch -q -c -w ./lib -w ./server -w ./config -x run

or

cargo dev

build

cargo build --release

configuration

configuration for running vulpix app lies in config folder. The default config is in Default.toml file.
Local config can be overriden by adding to Local.toml file and similarly production config can be overriden by adding to Production.toml

architecture

vulpix architecture

stress test

install k6

brew install k6

generate json file of url to be tested using redash query name it urls.json and place it in stresstest folder.

run the tests

k6 run  --iterations=100 --vus 10 stresstest/script.js