The world's first candy machine built on Svelte for Solana network. Inspired by React sample
Move to frontend directory and install dependencies. pnpm is recommended to use
$: cd ./frontend
$: pnpm i
Create candy machine using Metaplex. Read tutorial about Metaplex CLI & Detailed Docs. Check out cli output and .cache/temp file to get right IDs
Create Candy Machine and connect it with frontend in a short
- Clone the entire Metaplex
- Install local dependencies and ts-node
$: cd js $: npm install $: npm install -g typescript $: npm install -g ts-node
- Go to js/packages
$: cd packages
- Check Token Metadata Standard and create your own collection
- Place all files of the collection in assets directory
- Get your private key location (you must install Solana CLI and create wallet before)
$: solana config get
- Upload collection
$: ts-node cli upload ./assets --env devnet -k <path/to/your/solana/key/id.json>
- Create a new candy machine with price 5 sol per NFT
Copy and save candy machine ID, set it for VITE_CANDY_MACHINE_ID variable in .env.development
$: ts-node cli create_candy_machine -k <path/to/your/solana/key/id.json> -p 5
- Set drop date (Greenwich Mean Time)
You can also update the price, using -k parameter
$: ts-node cli update_candy_machine -k <path/to/your/solana/key/id.json> -d "21 Nov 2021 17:00:00 GMT"
- Copy config field from .cache/devnet-temp and set it for VITE_CANDY_MACHINE_ID variable in .env.development
Now you are ready to launch your Candy Machine
$: pnpm run dev
Go to Mint Page and try it out
Coming soon...