Skip to content

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

Notifications You must be signed in to change notification settings

dmdin/candy-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

40 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🍭 Candy machine

SvelteIcon Solana Metaplex JavaScript

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...

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published