This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
If you want to run the peerjs server locally, follow these steps:
docs: https://github.com/peers/peerjs-server
peerjs --port 9000 --key peerjs --path /blockchain --allow_discoveryOtherwise, make sure to set these environment variables in your .env:
NEXT_PUBLIC_PEERJS_SERVER_IP=peerjs.blockchain.core447.com
NEXT_PUBLIC_PEERJS_SERVER_PORT=443
NEXT_PUBLIC_PEERJS_SERVER_SECURE=true