Skip to content

Yusufcihan1/Sol-Music-Shop

Repository files navigation

Next.js Web3.js Solana

Welcome 👋

[TR] Başlık: Sol Music Shop Açıklama: Solana müzik marketi Phantom cüzdan aracılığıyla alışveriş yapabileceğiniz Solana Pay tabanlı bir marketplace uygulamasıdır.Alışveriş yapabilmek için cüzdanınızda USDC bulundurmanız gerekmektedir.Her alışverişinizde sizlere NFT hediye etmekten gurur duyuyoruz 🧙‍♂️.Ayrıca her 5 alışverinizde indirim barı dolar ve bir sonraki alışverişinizde %50 indirim uygulanır.Türkiye'nin en sevilen sanatçılarının albümlerinin bulunduğu bu markete hemen uğrayın ve alışverişten sonra NFT'nizi kapın 🤓

[EN] Solana music market is a Solana Pay based marketplace application where you can shop via Phantom wallet. USDC in your wallet to shop. Don't be proud of NFT gifts with every purchase 🧙‍♂️.In addition, the discount bar is filled for every 5 purchases and 50% discount is applied to your next purchase. Stop by this market where the albums of Turkey's most popular artists are available and grab your NFT after shopping 🤓 .

To get started with this project, clone this repo and follow these commands:

  1. Run npm install at the root of your directory
  2. Run npm run dev to start the project
  3. Start coding!

We’re going to start by getting a browser wallet set up, which we’ll use to get you onboarded to the Solana blockchain! Like in other blockchains, wallets are what we use to track our balances and interact with applications. If you already have a Solana wallet set up then feel free to speed through this! The most popular browser wallet is called Phantom, and you can download it from their website here: https://phantom.app/download. They have browser extensions for Chrome, Brave, Firefox and Edge - so you’re probably covered! If you’d like to use a different wallet for any reason then feel free to, they’re all compatible.

We need to follow these steps : 1-) Setup 1.1-) Browser Wallet 1.2-) Get Some denet SOL 1.3-) Adding a second wallet account 1.4-) Grab the Starter Code 1.5-) Customize It 2-) Our First Sale 2.1-) Generating the transaction 2.2-) Requesting the transaction 2.3-) Sending the transaction 2.4-) Detecting Payment 2.5-)Adding a confirmed page 3-) Charging Dollars 3.1-) Getting some USDC-Dev 3.2-) Updating our UI 3.3-) Updating our API 4-) Solana Pay 4.1-) Point of Sale Page 4.2-) Checkout Page 4.3-) Detecting Payment 5-) Transaction Requests 5.1-) Handling the GET request 5.2-) Testing with ngrok 6-) Loyalty Scheme 6.1-) Creating a coupon 6.2-) Displaying the user's coupon balance 6.3-) Sending a coupon to the buyer 6.4-) Receiving Coupons 6.5-) Coupon Discount 7-) Wrapping Up !