Geliştirme

Projenin kaynak kodu GitHub üzerindedir.

Gereksinimler

Başlamadan önce şunları kurun:

Geliştirme ortamı

# Clone the repository
git clone https://github.com/KilimcininKorOglu/r3v3rs3
cd r3v3rs3

# Create an admin account
cargo run --bin r3v3rs3 -- add-user admin

# Start the server
make run

# In a separate terminal, start `trunk serve` for the WebUI
cd r3v3rs3-webui
trunk serve

trunk serve, /api/ altındaki istekleri localhost:46492 üzerindeki sunucuya gönderir.

Testler ve kontroller

Release build

make release

# Start the server
target/release/r3v3rs3 start

make release önce WebUI'ı r3v3rs3/dist/webui dizinine, sonra sunucuyu build eder. Sunucu bu dizini derleme sırasında içine gömer. Bu yüzden WebUI önce build edilir.