To get started with this course, clone this repo and follow these commands:
- cd into the
appfolder - Run
npm installat the root of your directory - Run
npm run startto start the project - Start coding!
If you use VSCode to build your app, we included a list of suggested extensions that will help you build this project! Once you open this project in VSCode, you will see a popup asking if you want to download the recommended extensions :).
- Set up the web app and build a connect function to the Phantom Wallet in
App.js. - Install the pre-reqs:
git version
> git version 2.31.1 (or higher!)
node --version
> v14.17.0 (or higher, below v17 -- we found that node v16 works best)
yarn --version
> 1.22.11 (or higher!)
ts-node --version
> v10.2.1 (or higher!)
- If any of these commands are not found, please make sure to install it before moving on.
- Be sure to install
ts-nodeglobally:npm install -g ts-node - Install Solana. See https://docs.solana.com/cli/install-solana-cli-tools
- After Solana is installed, do the following:
solana --version
// Run these commands separately
solana config set --url https://api.devnet.solana.com
solana config get
It will output something like this:
Config File: /Users/flynn/.config/solana/cli/config.yml
RPC URL: https://api.devnet.solana.com
WebSocket URL: wss://api.devnet.solana.com/ (computed)
Keypair Path: /Users/flynn/.config/solana/id.json
Commitment: confirmed
- Install Metaplex CLI
- Create the NFTs collection.
- Deploy your NFTs to Solana's Devnet and upload to Arweave.
- Verify NFTs.
- Deploy candy machine to Metaplex's contract.
- Set drop date.
- Call your candy machine from your web app.
- Set up you .env variables and change the network to devnet in the Phantom wallet.
Have 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!