GithubHelp home page GithubHelp logo

jer117 / candy-machine-v2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alvinsga/candy-machine-v2

0.0 0.0 0.0 2.25 MB

Fork, customize and deploy your Candy Machine v2 super quickly

Home Page: https://solarare.com

License: MIT License

Shell 0.81% HTML 2.70% JavaScript 2.49% Svelte 33.56% CSS 2.89% TypeScript 57.56%

candy-machine-v2's Introduction

Candy Machine V2 Frontend

This is a barebones implementation of Candy Machine V2 frontend, intended for users who want to quickly get started selling Solana NFT's. Some code has been ported from the Fair Launch Protocol frontend in the Metaplex repo. This has been tested with Candy Machine programs on both devnet and mainnet-beta.

The app was built using Svelte + Vite and uses TailwindCSS for styles.

This is code is open-sourced from SolaRare @ https://solarare.com, a Candy Machine Mint Page generator.

Screenshot 2022-03-14 at 00 05 29

Getting started

Rename the .env.example file to .env and populate the following environment variables:

Required:

- VITE_APP_CANDY_MACHINE_ID=
- VITE_APP_SOLANA_NETWORK=
- VITE_APP_SOLANA_RPC_HOST=

Optional: Populate with your Google Analytics Measurement ID (in the format G-XXXXXXXXXX)

- VITE_APP_GOOGLE_ANALYTICS=

Example configuration

Devnet:

- VITE_APP_SOLANA_NETWORK=devnet
- VITE_APP_SOLANA_RPC_HOST=https://explorer-api.devnet.solana.com

Mainnet-beta:

- VITE_APP_SOLANA_NETWORK=mainnet-beta
- VITE_APP_SOLANA_RPC_HOST=https://api.mainnet-beta.solana.com

Edit the following variables in App.svelte to match your project:

- TITLE
- DESCRIPTION
- IMAGE_LINK
- HEADER_TITLE
- HEADER_LINK

Then run:

- yarn install
- yarn dev

Features

  • Automatically fetches items minted, total quantity and price from the candy machine state
  • Whitelist token detection and whitelist price updates
  • 'View on Solana Explorer' after transaction has been broadcasted
  • Confetti after a successful mint
  • Google Analytics tracking

candy-machine-v2's People

Contributors

alvinsga avatar jer117 avatar psavva avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.