candy-machine Svelte Themes

Candy Machine

🍭 The world's first candy machine built on Svelte for Solana network

🍭 Candy machine

The world's first candy machine built on Svelte for Solana network. Inspired by React sample

⚙️ Install

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

🍬 How To

Create Candy Machine and connect it with frontend in a short

  1. Clone the entire Metaplex
  2. Install local dependencies and ts-node
    $: cd js
    $: npm install
    $: npm install -g typescript
    $: npm install -g ts-node
    
  3. Go to js/packages
    $: cd packages
    
  4. Check Token Metadata Standard and create your own collection
  5. Place all files of the collection in assets directory
  6. Get your private key location (you must install Solana CLI and create wallet before)
    $: solana config get 
    
  7. Upload collection
    $: ts-node cli upload ./assets --env devnet -k <path/to/your/solana/key/id.json>
    
  8. Create a new candy machine with price 5 sol per NFT
    $: ts-node cli create_candy_machine -k <path/to/your/solana/key/id.json> -p 5
    
    Copy and save candy machine ID, set it for VITE_CANDY_MACHINE_ID variable in .env.development
  9. Set drop date (Greenwich Mean Time)
    $: ts-node cli update_candy_machine -k <path/to/your/solana/key/id.json> -d "21 Nov 2021 17:00:00 GMT"
    
    You can also update the price, using -k parameter
  10. Copy config field from .cache/devnet-temp and set it for VITE_CANDY_MACHINE_ID variable in .env.development

🚀 Startup the app

Now you are ready to launch your Candy Machine

   $: pnpm run dev

Go to Mint Page and try it out

🛰 Deploy

Coming soon...

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes