mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-05-14 10:25:14 -04:00
#1744 Update develepment guide docs to include Rust/WASM
This commit is contained in:
committed by
Leendert de Borst
parent
866a0fd606
commit
aac02e3ddb
@@ -12,13 +12,13 @@ This guide will help you set up AliasVault for development on Linux or MacOS sys
|
||||
|
||||
## Prerequisites
|
||||
|
||||
1. **Install .NET 9 SDK**
|
||||
1. **Install .NET 10 SDK**
|
||||
```bash
|
||||
# On MacOS via brew:
|
||||
brew install --cask dotnet-sdk
|
||||
|
||||
# On Linux:
|
||||
# Follow instructions at https://dotnet.microsoft.com/download/dotnet/9.0
|
||||
# Follow instructions at https://dotnet.microsoft.com/download/dotnet/10.0
|
||||
```
|
||||
|
||||
2. **Install Docker**
|
||||
@@ -68,7 +68,7 @@ This guide will help you set up AliasVault for development on Linux or MacOS sys
|
||||
dotnet tool install --global Microsoft.Playwright.CLI
|
||||
|
||||
# Install browsers
|
||||
pwsh apps/server/Tests/AliasVault.E2ETests/bin/Debug/net9.0/playwright.ps1 install
|
||||
pwsh apps/server/Tests/AliasVault.E2ETests/bin/Debug/net10.0/playwright.ps1 install
|
||||
```
|
||||
|
||||
6. **Configure Development Settings**
|
||||
@@ -84,6 +84,22 @@ This guide will help you set up AliasVault for development on Linux or MacOS sys
|
||||
}
|
||||
```
|
||||
|
||||
7. **Install rustup & compile from Rust to WebAssembly**
|
||||
- Needed for AliasVault.Client module in case you want to run it directly from the code on your IDE (e.g. not using Docker)
|
||||
- Follow instructions at [rustup](https://rustup.rs) and install it.
|
||||
- Add `wasm32-unknown-unknown` and `wasm-pack`:
|
||||
```bash
|
||||
# Add wasm32-unknown-unknown target to your Rust installation
|
||||
rustup target add wasm32-unknown-unknown
|
||||
|
||||
# Install wasm-pack
|
||||
cargo install wasm-pack
|
||||
```
|
||||
- Run AliasVault Rust Core Build Script:
|
||||
```bash
|
||||
./core/rust/build.sh --browser
|
||||
```
|
||||
|
||||
## Running the Application
|
||||
|
||||
1. **Start the Development Database**
|
||||
|
||||
@@ -28,8 +28,8 @@ This guide will help you set up AliasVault for development on Windows using WSL
|
||||
- .NET WebAssembly development tools
|
||||
- .NET cross-platform development
|
||||
|
||||
3. **Install .NET 9 SDK**
|
||||
- Download from [.NET Downloads](https://dotnet.microsoft.com/download/dotnet/9.0)
|
||||
3. **Install .NET 10 SDK**
|
||||
- Download from [.NET Downloads](https://dotnet.microsoft.com/download/dotnet/10.0)
|
||||
- Install both Windows and Linux versions (you'll need both)
|
||||
|
||||
## Setup Steps
|
||||
|
||||
Reference in New Issue
Block a user