GithubHelp home page GithubHelp logo

liqnft / candy-shop-storefront-nextjs Goto Github PK

View Code? Open in Web Editor NEW
32.0 1.0 14.0 1.71 MB

Solana NFT Storefront & Auctions

Home Page: https://candy-shop-storefront-nextjs.vercel.app/

License: Apache License 2.0

Shell 2.20% JavaScript 15.24% TypeScript 68.88% CSS 13.68%
auction marketplace nft solana storefront next nextjs

candy-shop-storefront-nextjs's Introduction

Candy Shop Storefront NextJS

Solana NFT storefront powered by Candy Shop.

Key features:

  • SOL and SPL token marketplace
  • SOL and SPL token auctions
  • Marketplace with modal or single NFT view
  • NFT filtering, sort and search
  • Multi collection marketplace
  • Multi currency marketplace
  • Marketplace activity

Solana NFT Storefront NextJS

Quick start

git clone https://github.com/LIQNFT/candy-shop-storefront-nextjs.git
cd candy-shop-storefront-nextjs
cat .env.example >> .env
yarn
yarn dev

One-Click Vercel Deployment

One-click solution to clone this project to your GitHub and deploy the prod package on a Vercel. Your only task will be to customize your GitHub fork of this project and commit updates. Vercel will automatically deploy new prod packages for each new commit.

Deploy with Vercel

Setup

Prerequisites

  • Ensure you have both nodejs and yarn installed. nodejs recommended version is 16.

Installation

1. Fork the project & clone it. Example:

git clone https://github.com/LIQNFT/candy-shop-storefront-nextjs

2. Define your environment variables (.env file)

Rename the .env.example file at the root directory to .env and update the following variables in the .env file :

NEXT_PUBLIC_CANDY_SHOP_CREATOR_ADDRESS=Fo2cXie4UwreZi7LHMpnsyVPvzuo4FMwAVbSUYQsmbsh
NEXT_PUBLIC_CANDY_SHOP_TREASURY_MINT=So11111111111111111111111111111111111111112
NEXT_PUBLIC_CANDY_SHOP_PROGRAM_ID=csa8JpYfKSZajP7JzxnJipUL3qagub1z29hLvp578iN

You may get these parameters by creating a shop here.

NEXT_PUBLIC_SOLANA_NETWORK=devnet

This identifies the Solana network you want to connect to. Options are devnet, testnet, and mainnet-beta.

NEXT_PUBLIC_SOLANA_RPC_HOST=https://api.devnet.solana.com

This identifies the RPC server your web app will access the Solana network through.

4. Customize your storefront:

4.1 styles/global.css: update 3 main CSS variables with your custom colors :
:root {
  --black: #000000;
  --white: #ffffff;

  --pageBG: #ffffff;
  --pageText: #000000;
  --scope: #0066ff;
}

[data-theme='dark'] {
  --pageBG: #000000;
  --pageText: #f4f4f0;
  --scope: #0066ff;
}

[data-theme='candy'] {
  --pageBG: #a5b4fc;
  --pageText: #4338ca;
  --scope: #ff1717;

4.2 public folder:
  • Update existing demo cool cats images (cool-cats.gif, logo.png) with your owns images in project public folder. Make sure to name them identically.

That's it! Enjoy your beautiful storefront!

Available Commands Recap:

yarn dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

candy-shop-storefront-nextjs's People

Contributors

beepsaidblue avatar gonwi avatar rustysol avatar vanminhtran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

candy-shop-storefront-nextjs's Issues

Where to find minting page?

So I have cloned the repository and run it on my local machine but it seems that I cant find any page where user can mint nft.

Any help will be much appreciated. thanks!

ReferenceError: window is not defined

first off:
kudos & chapeaux!

my problem:
I'm trying to integrate this into an existing nextjs-project (that's based on the solana-labs/dapp-scaffold)
and am weirdly getting a "ReferenceError: window is not defined" that I can't seem to find a fix for.

Do you have any idea or hint where this could be stemming from? I've been trying all day now to no avail.

ReferenceError: window is not defined at /Users/.../node_modules/@google/model-viewer/dist/model-viewer-umd.js:572:20 at /Users/.../node_modules/@google/model-viewer/dist/model-viewer-umd.js:2:68 at Object.<anonymous> (/Users/.../node_modules/@google/model-viewer/dist/model-viewer-umd.js:5:2) at Module._compile (node:internal/modules/cjs/loader:1097:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10) at Module.load (node:internal/modules/cjs/loader:975:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:999:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/Users/.../node_modules/@liqnft/candy-shop/dist/index.es.js:7:366) { page: '/'

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.