Getting up and running is easy.
-
Install docker (https://docs.docker.com/engine/install)
-
Go to the project root path
cd path/to/vircadia-metaverse-v2
-
Install etherium dlt dependencies
cd ethereum/dlt/ npm install cd ..
-
open
conf.d/vircadia_conf.conf
file and changeserver_name
-
Copy env file
cp env.default .env
-
Open .env file
-
Change following env params SERVER_HOST, METAVERSE_SERVER_URL, DEFAULT_ICE_SERVER_URL, DASHBOARD_URL, APP_LOGO, APP_URL, SMTP_USER, SMTP_PASS, SMTP_EMAIL_FROM etc...
-
Blockchain params MINTER_PRIVATE_KEY, ETH_RPC_URL
-
-
Run Following docker commands for deploy into docker (Same commands for redeploy)
docker compose build docker compose up -d
-
Run Following command for stop docker (Optional)
docker compose down
-
Remove docker cached images (Optional)
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
Run npm test
and all your tests in the test/
directory will be run.
Note: DLT is not a required component for the metaverse.
Spin up a test chain:
npm run localchain
Feathers has a powerful command line interface. Here are a few things it can do:
$ npm install -g @feathersjs/cli # Install Feathers CLI
$ feathers generate service # Generate a new Service
$ feathers generate hook # Generate a new Hook
$ feathers help # Show all commands
npx typedoc expand ./src/services/**/*.class.ts