You can easily copy and paste the contract into your existing project or to clone this project.
# clone the repo
git clone https://github.com/kodjunkie/nft-smart-contracts.git
# navigate to the repo directory
cd nft-smart-contracts
# setup env
cp .env.example .env
# install dependencies
npm install
All compiled artifacts are located in the builds
directory.
npm run compile
NOTE: If you intend to deploy directly via this project, you must follow the instructions below.
- Edit
migrations/2_deploy_contracts.js
and remove/comment out redundant deployments. - Update
.env
accordingly and run any of the commands below
# deploy to truffle network
npx truffle migrate
# deploy to truffle network using third-party wallet via HDWalletProvider
npx truffle migrate --network wallet
# deploy to truffle network using third-party wallet via Dashboard
npx truffle migrate --network dashboard
# deploy to rinkeby network via Infura
npx truffle migrate --network rinkeby
More deployment configurations can be added to the networks
object in the truffle-config.js
file.
npm test
MIT License © 2022 Lawrence Onah