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 installAll compiled artifacts are located in the builds directory.
npm run compileNOTE: If you intend to deploy directly via this project, you must follow the instructions below.
- Edit
migrations/2_deploy_contracts.jsand remove/comment out redundant deployments. - Update
.envaccordingly 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 rinkebyMore deployment configurations can be added to the networks object in the truffle-config.js file.
npm testMIT License © 2022 Lawrence Onah