Virtual Arena for Peer-to-Peer Online Rendezvous
Web2 has Steam, Web3 has VAPOR.
See also the README files of the various subpackages:
- Install pre-requisite tooling:
- Make
- Foundry
- Last
foundryup
: 17 Nov 2023
- Last
- Node.js & PNPM (
npm install -g pnpm
)- Tested with Node v20.1.0
- The appropriate pnpm version is listed under the "packageManager key in
package.json
- If you have any issues while installing dependencies with pnpm you can try to use
corepack
to make sure you use correct version of pnpm.corepack enable
corepack pnpm install
- Run
make setup
- Run contract tests for basic sanity testing:
(cd packages/contracts && make test)
If you're using Visual Studio Code, the contract remappings will only be picked up if you set the
root of the project to the contracts
package. Otherwise, you'll add to manually add the remappings
(from remappings.txt
) to the Solidity plugin configuration.
To deploy and try out the app run the following commands (anvil
and webdev
will keep running and
must be run in their own terminal):
make anvil
make webdev
make deploy
This will do the following:
- Run anvil (local EVM node) at localhost:8545 with chain ID 1337 (this chain comes preconfigured in Metamask and other wallets as "Localhost")
- Run the NextJS dev command (web server + live reload)
- Deploy the contracts to the local node
After that, you can visit the app at http://localhost:3000/ (if that port is already occupied, NextJS might affect another one).
Common caveat: Every time you restart Anvil, you might have to perform some kind of reset in your wallet. With Metamask, that's "..." > "Settings" > "Advanced" > "Clear activity and nonce data".
See the Makefile for a description of all top-level make commands.