diff --git a/virtweb_docs/SETUP_DEV.md b/virtweb_docs/SETUP_DEV.md index 5e1edc6..e621fd6 100644 --- a/virtweb_docs/SETUP_DEV.md +++ b/virtweb_docs/SETUP_DEV.md @@ -11,7 +11,7 @@ sudo apt install qemu-kvm libvirt-daemon-system ``` 3. Allow the current user to manage VMs: -``` +```bash sudo adduser $USER libvirt sudo adduser $USER kvm ``` @@ -20,4 +20,27 @@ sudo adduser $USER kvm 4. Install required developpment tools: * Rust: https://www.rust-lang.org/learn/get-started -* NodeJS: https://nodejs.org/en/download/current \ No newline at end of file +* NodeJS: https://nodejs.org/en/download/current + + +5. Run sample OpenID service +```bash +cd virtweb_backend +docker compose up +``` + +6. Run the backend: +```bash +sudo mkdir /var/virtweb +sudo chown $USER:$USER /var/virtweb +cd virtweb_backend +cargo fmt && cargo clippy && cargo run -- -s /var/virtweb --hypervisor-uri "qemu:///system" +``` + +7. Run the frontend +```bash +cd virtweb_frontend +npm run start +``` + +Have fun with your development! \ No newline at end of file