Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Crossmint/candy-machine-react-ui
UI frontend in react for Solana Candy Machine NFTs
https://github.com/Crossmint/candy-machine-react-ui
Last synced: about 2 months ago
JSON representation
UI frontend in react for Solana Candy Machine NFTs
- Host: GitHub
- URL: https://github.com/Crossmint/candy-machine-react-ui
- Owner: Crossmint
- Created: 2022-02-02T06:52:27.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-21T01:09:34.000Z (about 2 years ago)
- Last Synced: 2024-08-01T08:15:54.909Z (4 months ago)
- Language: TypeScript
- Size: 279 KB
- Stars: 49
- Watchers: 1
- Forks: 34
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - Crossmint/candy-machine-react-ui - UI frontend in react for Solana Candy Machine NFTs (TypeScript)
README
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FCrossMint%2Fcandy-machine-react-ui&env=REACT_APP_CANDY_MACHINE_ID,REACT_APP_SOLANA_NETWORK,REACT_APP_SOLANA_RPC_HOST,REACT_APP_CROSSMINT_ID&project-name=candy-machine-ui&repo-name=candy-machine-react-ui)
# candy-machine-react-ui
Create your NFT minting site for Solana Candy Machine, in less than 5 minutes.
This repository contains a minimal UI front-end in React, for creating NFT drop sites for Solana Candy Machines.
It also includes the option to accept credit cards via Crossmint (which takes under 5 min to set up as well).
## Accept credit card payments
Accepting credit card payments allows you to sell to more customers who don't yet have a wallet, or are using their phones. With crossmint, accepting credit cards is free for you (seller), and you'll still receive all the funds instantly in SOL.
To get more in-depth integration instructions visit our [Solana Candy Machine documentation](https://docs.crossmint.io/accept-credit-cards/integration-guides/solana-candy-machine/b-i-have-an-existing-candy-machine-website).
It takes less than 5 lines of code and 5 minutes to integrate.
## Set up
Make sure you have `yarn` and `git` installed. Then run:
```
git clone https://github.com/CrossMint/candy-machine-react-ui.git
cd candy-machine-react-ui
yarn
```## Configure
Copy the `.env.template` file into a file named `.env`
Then, uncomment either the "development" or "production" lines, depending on whether you are running a devnet candy machine or a production one.
Finally, in ``, enter the candy machine ID you obtained when uploading your assets. [More info](https://docs.metaplex.com/candy-machine-v2/creating-candy-machine)
## Develop
Run `yarn dev` to start a local server
Then make any UI changes into the `src/Home.tsx` file
Also be sure to update the title and description of your site in `public/index.html`
## Deploy with Vercel
We recommend you deploy to Vercel, as it's free, scalable and very easy to use.
To do so:
1. Create an account at vercel.com
2. Install the vercel command line
3. Run `vercel` on your project folder (generally the recommended configuration works)
4. Go to the vercel console and configure the domain for your dropOr just click this button:
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FCrossMint%2Fcandy-machine-react-ui&env=REACT_APP_CANDY_MACHINE_ID,REACT_APP_SOLANA_NETWORK,REACT_APP_SOLANA_RPC_HOST,REACT_APP_CROSSMINT_ID&project-name=candy-machine-ui&repo-name=candy-machine-react-ui)