Faterium Decentralized Application

January 30, 2023 ยท View on GitHub

Faterium - a place where fates are forged.

Published by Cloudflare Pages. Look at the Astro documentation to learn more. Also, we use WindiCSS and SCSS preprocessors.

Commands

All commands are run from the root of the project, from a terminal:

CommandAction
yarnInstalls dependencies
yarn devStarts local dev server at localhost:3000
yarn buildBuild your production site to ./dist/
yarn previewPreview your build locally, before deploying
yarn astro ...Run CLI commands like astro add, astro preview
yarn astro --helpGet help using the Astro CLI
yarn testRun PlayWright tests for all devices

Local setup

If you want to run local node, server, and dapp - use our Launch local network from our faterium-server repository to launch faterium-node, faterium-server, and polkadot-apps locally.

Then run the following command to launch and connect to local services (localhost:9944 and localhost:8090):

yarn dev

Then run the following command to launch and connect to dapp-*.faterium.com services:

PUBLIC_NETWORK=testnet yarn dev

Local testing setup

If you want to run tests - make sure you have installed all required PlayWright dependencies for your system.

And you have local services up and running. To run server and node locally - run the following docker-compose command in the root of this directory:

docker-compose up -d

After services are launched - you can launch all End-to-End tests by simple command:

yarn test

It will launch all PlayWright tests against local services and create report.

To stop and remove services - use the following command:

docker-compose down

Testing against testnet

If you want to test against testnet server for some reason - you can launch this command instead:

PUBLIC_NETWORK=testnet yarn test