# how to setup local appview dev environment Appview requires several microservices from knot and spindle to entire atproto infra. This test environment is implemented under nixos vm. 1. copy `contrib/example.env` to `.env`, fill it and source it 2. run vm ```bash nix run --impure .#vm ``` 3. trust the generated cert from host machine ```bash # for macos sudo security add-trusted-cert -d -r trustRoot \ -k /Library/Keychains/System.keychain \ ./nix/vm-data/caddy/.local/share/caddy/pki/authorities/local/root.crt ``` 4. create test accounts with valid emails (use [`create-test-account.sh`](./scripts/create-test-account.sh)) 5. create default labels (use [`setup-const-records`](./scripts/setup-const-records.sh)) 6. restart vm with correct owner-did for git-https, you should change your local git config: ``` [http "https://knot.tngl.boltless.dev"] sslCAPath = /Users/boltless/repo/tangled/nix/vm-data/caddy/.local/share/caddy/pki/authorities/local/ ```