Coder Social home page Coder Social logo

yosephks / truffle-opensea-nft Goto Github PK

View Code? Open in Web Editor NEW
19.0 4.0 7.0 337 KB

Building NFTs (ERC721 & ERC1155) for OpenSea using Truffle, Moralis, and Openzeppelin

License: MIT License

Solidity 34.67% JavaScript 64.89% Shell 0.43%
ipfs moralis nft nfts solidity openzeppelin openzeppelin-solidity upgradable-solidity upgradable-smart-contracts erc721

truffle-opensea-nft's Introduction

Truffle OpenSea NFT

Generate NFTs with Truffle, Moralis, and Openzeppelin to be listed in OpenSea


Pre-requisites

1. Truffle

# Using NPM
npm i -g truffle@latest

# Using Yarn
yarn global add truffle@latest

2. NPM or Yarn

Go to Node.js website and download Node onto your system. If you would like to use NPM as your package manager, no more steps are required. If you would like to use Yarn, run the following command.

npm i -g yarn@latest

3. Moralis Free Account

Go to Moralis Admin to sign up for its free account and get your REST API Key.


Installation

1. Clone the Project

git clone https://github.com/YosephKS/truffle-nft-chainlink.git

2. Install dependencies

# Using NPM
npm i

# Using Yarn
yarn

Getting Started

1. Add your wallet mnemonic

Create a .secret file and copy your mnemonic into the file.

2. Fill in environment variables

Copy .env.example and rename it to .env and fill in all the environment variables.

INFURA_API_KEY=xxx
MORALIS_API_KEY=xxx
ETHERSCAN_API_KEY=xxx
NODE_PROVIDER=xxx
MORALIS_REST_API_KEY=xxx

3. Run IPFS scripts

Truffle can't import dotenv into external scripts at the moment, so the environment variables have to be injected directly.

# Using NPM
MORALIS_REST_API_KEY=xxx npm run ipfs

# Using Yarn
MORALIS_REST_API_KEY=xxx yarn ipfs

4. Compile the project

# Using NPM
npm run compile

#Using Yarn
yarn compile

5. Migrate the project to your preferred network

yarn migrate --network rinkeby

License

MIT

truffle-opensea-nft's People

Contributors

yosephks avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

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.