Coder Social home page Coder Social logo

the-stripes-nft / nft-minting-app Goto Github PK

View Code? Open in Web Editor NEW
340.0 10.0 328.0 4.01 MB

This is the NFT minting web app created using React js and with the help of Hashlips.

Home Page: https://the-stripes-nft-minting.vercel.app/

License: MIT License

CSS 7.54% HTML 6.70% JavaScript 85.76%
nft nft-minting minting-nfts the-stripes-nft ali-solanki

nft-minting-app's Introduction

Welcome to The Stripes NFT ๐Ÿ’Ž

All the code in these repos was created and explained by HashLips on the main YouTube channel.

To find out more please visit:

๐Ÿ“บ YouTube

๐Ÿ’ฌ Telegram

๐Ÿฆ Twitter

โ„น๏ธ Website

The Stripes NFT minting dapp ๐Ÿ”ฅ

This repo provides a nice and easy way for linking an existing NFT smart contract to this minting dapp. There are two ways of using this repo, you can go the simple route or the more complex one.

The simple route is so simple, all you need to do is download the build folder on the release page and change the configuration to fit your needs. (Follow the video for a walk through).

The more complex route allows you to add additional functionality if you are comfortable with coding in react.js. (Follow the below instructions for a walk through).

Installation ๐Ÿ› ๏ธ

If you are cloning the project then run this first, otherwise you can download the source code on the release page and skip this step.

git clone https://github.com/The-Stripes-NFT/nft-minting-app.git

Make sure you have node.js installed so you can use npm, then run:

npm install

Usage โ„น๏ธ

In order to make use of this dapp, all you need to do is change the configurations to point to your smart contract as well as update the images and theme file.

For the most part all the changes will be in the public folder.

To link up your existing smart contract, go to the public/config/config.json file and update the following fields to fit your smart contract, network and marketplace details. The cost field should be in wei.

Note: this dapp is designed to work with the intended NFT smart contract, that only takes one parameter in the mint function "mintAmount". But you can change that in the App.js file if you need to use a smart contract that takes 2 params.

{
  "CONTRACT_ADDRESS": "0x827acb09a2dc20e39c9aad7f7190d9bc53534192",
  "SCAN_LINK": "https://polygonscan.com/token/0x827acb09a2dc20e39c9aad7f7190d9bc53534192",
  "NETWORK": {
    "NAME": "Polygon",
    "SYMBOL": "Matic",
    "ID": 137
  },
  "NFT_NAME": "The Stripes NFT",
  "SYMBOL": "TSNFT",
  "MAX_SUPPLY": 992,
  "WEI_COST": 75000000000000000,
  "DISPLAY_COST": 0.075,
  "GAS_LIMIT": 285000,
  "MARKETPLACE": "Opeansea",
  "MARKETPLACE_LINK": "https://opensea.io/collection/the-stripes-nft",
  "SHOW_BACKGROUND": true
}

Make sure you copy the contract ABI from remix and paste it in the public/config/abi.json file. (follow the youtube video if you struggle with this part).

Now you will need to create and change 2 images and a gif in the public/config/images folder, bg.png, example.gif and logo.png.

Next change the theme colors to your liking in the public/config/theme.css file.

:root {
  --primary: #ebc908;
  --primary-text: #1a1a1a;
  --secondary: #ff1dec;
  --secondary-text: #ffffff;
  --accent: #ffffff;
  --accent-text: #000000;
}

Now you will need to create and change the public/favicon.ico, public/logo192.png, and public/logo512.png to your brand images.

Remember to update the title and description the public/index.html file

<title>The Stripes NFT</title>
<meta name="description" content="Mint your Stripes NFT" />

Also remember to update the short_name and name fields in the public/manifest.json file

{
  "short_name": "TSNFT",
  "name": "The Stripes NFT"
}

After all the changes you can run.

npm run start

Or create the build if you are ready to deploy.

npm run build

Now you can host the contents of the build folder on a server.

That's it! you're done.

nft-minting-app's People

Contributors

alisolanki 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  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  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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nft-minting-app's Issues

Mint is 'stuck'

I am having issues with the dapp. My site is www.wellnessinitiative.io.
When I try and test whether or not I can mint an NFT, it lets me connect to my wallet, but when I click buy, it will stay stuck on the screenshot I have below. Please help!
image

code: -32603 allways underpriced transaction

Everytime I mint a NFT I get an error "[ethjs-query] while formatting outputs from RPC '{โ€ฆe":-32000,"message":"transaction underpriced"}}}" regardless how high the GAS_LIMIT is set. I have to increase the GAS_LIMIT allways manualy to get it work.

NPM RUN START ERROR?

Starting the development server...

Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:135:10)
at module.exports (C:\Users\bobi1\Desktop\NFT)\nft-minting-app-main\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (C:\Users\bobi1\Desktop\NFT)\nft-minting-app-main\node_modules\webpack\lib\NormalModule.js:417:16)
at handleParseError (C:\Users\bobi1\Desktop\NFT)\nft-minting-app-main\node_modules\webpack\lib\NormalModule.js:471:10)
at C:\Users\bobi1\Desktop\NFT)\nft-minting-app-main\node_modules\webpack\lib\NormalModule.js:503:5
at C:\Users\bobi1\Desktop\NFT)\nft-minting-app-main\node_modules\webpack\lib\NormalModule.js:358:12
at C:\Users\bobi1\Desktop\NFT)\nft-minting-app-main\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (C:\Users\bobi1\Desktop\NFT)\nft-minting-app-main\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at iterateNormalLoaders (C:\Users\bobi1\Desktop\NFT)\nft-minting-app-main\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
C:\Users\bobi1\Desktop\NFT)\nft-minting-app-main\node_modules\react-scripts\scripts\start.js:19
throw err;
^

Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:135:10)
at module.exports (C:\Users\bobi1\Desktop\NFT)\nft-minting-app-main\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (C:\Users\bobi1\Desktop\NFT)\nft-minting-app-main\node_modules\webpack\lib\NormalModule.js:417:16)
at C:\Users\bobi1\Desktop\NFT)\nft-minting-app-main\node_modules\webpack\lib\NormalModule.js:452:10
at C:\Users\bobi1\Desktop\NFT)\nft-minting-app-main\node_modules\webpack\lib\NormalModule.js:323:13
at C:\Users\bobi1\Desktop\NFT)\nft-minting-app-main\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at C:\Users\bobi1\Desktop\NFT)\nft-minting-app-main\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at context.callback (C:\Users\bobi1\Desktop\NFT)\nft-minting-app-main\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at C:\Users\bobi1\Desktop\NFT)\nft-minting-app-main\node_modules\babel-loader\lib\index.js:59:103 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v17.4.0

bsc network

Hi , how are you

can we use with binance smart chain contract instead of polygon?

Thanks

Whitelist integration - How to do?

I have the needs to have a whitelist integration for the website but i dont know how to do that.
I've got my own smart contract with WL working fine, but i need to put it in the website, like the website knows who is in WL and who not, also when its time for WL minting and public mint and so on...

Can you guys help me?
Btw, how can i use my smart contract in any website? Please i'm studying and learning if someone can guide me and help me i'll be grateful

Dotted line around GIF.

Is it possible to remove the dotted around the gif?
i can remove the dotted line from the background but cant find the code for the gif area.

NPM RUN START ERROR HELP!!!

[email protected] start
react-scripts start

'react-scripts' is not recognized as an internal or external command,
operable program or batch file. -This is what I get why I try to do "npm run start" yes everything is installed.

npm install error

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\user\Desktop\nft-minting-app-main/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\user\Desktop\nft-minting-app-main\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Local\npm-cache_logs\2022-09-02T16_22_51_721Z-debug-0.log

Issu with nom run build

I have build the project and I only have a white application in my index.html. Someone can help me?

I write this after I enter the command npm intall

PS C:\Users\filip\Downloads\nft-minting-app-main> npm install
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\filip\Downloads\nft-minting-app-main/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\filip\Downloads\nft-minting-app-main\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\filip\AppData\Local\npm-cache_logs\2022-02-19T09_12_07_119Z-debug-0.log
PS C:\Users\filip\Downloads\nft-minting-app-main>

The site is not deployed

Good afternoon, I downloaded the nft-minting-app file and changed only the background image and I can't expand it for viewing

Error when trying to mint

Getting the following error when I press the Buy button to mint the NFT

Uncaught TypeError: blockchain.smartContract.methods.mint is not a function
at claimNFTs (App.js:132:1)
at onClick (App.js:387:1)

says that the blockchain smart contract mint method is not a function? Does anyone know how i can resolve this?

Error While Testing App On Local Host

(I had to upload the error messages to a pastebin since it exceeded GitHub's max. character limit).
When I run npm install it installs it and shows there are 35 vulnerabilities and when I run npm run start it displays this on the webpage that opens: https://controlc.com/23e69733

And in the Visual Studio Code terminal it displays this: https://controlc.com/2b586330

I am so close to launching my first collection, I even have the website ready, just this issue is a problem.

when i put npm run start, to start on localhost it tells me

npm ERR! Missing script: "start"
npm ERR!
npm ERR! Did you mean one of these?
npm ERR! npm star # Mark your favorite packages
npm ERR! npm stars # View packages marked as favorites
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\filip\AppData\Local\npm-cache_logs\2022-03-03T14_44_18_950Z-debug-0.log

Mint stuck at busy.

When I upload and try to mint on the matic, or the test polygon network that are indicated in the video and I mint from the contract in Visual studio it mints, but when I try to mint from the site it says busy and does not proceed any further. It says Minting Your ..... and the button says busy

How can I change the price for a token ?

Hi, tell me how I can change the price for NFT , everything created the site works, when I connect to metemask it gives a price of 4 matica, although I'm in the config file.json "DISPLAY_COST": 0.075,
tell me how to change the price ???

How can I change the background and logo design of my site?

Thank you very much for making such a wonderful tool. I really think you are a genius.
I would like to change the logo and background design of the minting site if possible, but I don't know how.
If you don't mind, please let me know.

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.