I abandoned all things related to web3.
Note: This is a bit different from the original project since it was made with Svelte and XState! I choose Svelte because It's easier to read. XState was choosen to prevent and catch any unexpected state bugs.
To get started with this project, clone this repo and follow these commands:
pnpm install
at the root of your directorypnpm start
to start the projectHave some questions make sure you head over to your buildspace Dashboard and link your Discord account so you can get access to helpful channels and your instructor!
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
pnpm dev
# or start the server and open the app in a new browser tab
pnpm dev -- --open
This Svelte app reads your private key from an environment variable. To export your key as an environment variables:
solana-keygen new
or recover a previous keypair by solana-keygen recover
~/.config/solana.id.json
. Copy all contents of that file and export it using export PRIVATE_KEY=<Whatever you copied>
If you're having trouble getting anything to work just use Gitpod! Gitpod is essentialy a Linux machine with VSCode on the cloud. This repository is configured with a Gitpod environment that includes node and pnpm!
Before creating a production version of this app, install an adapter for your target environment. Then:
pnpm build
IF you ran pnpm install
you already have a static adapter that builds a static version of the application (CSS, HTML, JS)!
You can preview the built app with
pnpm preview
, regardless of whether you installed an adapter. This should not be used to serve your app in production.