Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yosephks/truffle-opensea-nft
Building NFTs (ERC721 & ERC1155) for OpenSea using Truffle, Moralis, and Openzeppelin
https://github.com/yosephks/truffle-opensea-nft
erc1155 erc721 ipfs moralis nft nfts openzeppelin openzeppelin-solidity solidity upgradable-smart-contracts upgradable-solidity
Last synced: about 1 month ago
JSON representation
Building NFTs (ERC721 & ERC1155) for OpenSea using Truffle, Moralis, and Openzeppelin
- Host: GitHub
- URL: https://github.com/yosephks/truffle-opensea-nft
- Owner: YosephKS
- License: mit
- Created: 2021-10-23T10:52:27.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-18T14:58:04.000Z (about 3 years ago)
- Last Synced: 2024-12-11T03:12:27.723Z (about 2 months ago)
- Topics: erc1155, erc721, ipfs, moralis, nft, nfts, openzeppelin, openzeppelin-solidity, solidity, upgradable-smart-contracts, upgradable-solidity
- Language: JavaScript
- Homepage:
- Size: 329 KB
- Stars: 20
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Truffle OpenSea NFT
Generate NFTs with Truffle, Moralis, and Openzeppelin to be listed in OpenSea
---
## Pre-requisites
### 1. Truffle
```bash
# Using NPM
npm i -g truffle@latest# Using Yarn
yarn global add truffle@latest
```### 2. NPM or Yarn
Go to [Node.js](https://nodejs.org/) 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](https://admin.moralis.io/register) to sign up for its free account and get your REST API Key.
---
## Installation
### 1. Clone the Project
```bash
git clone https://github.com/YosephKS/truffle-nft-chainlink.git
```### 2. Install dependencies
```bash
# 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.
```bash
# Using NPM
MORALIS_REST_API_KEY=xxx npm run ipfs# Using Yarn
MORALIS_REST_API_KEY=xxx yarn ipfs
```### 4. Compile the project
```bash
# Using NPM
npm run compile#Using Yarn
yarn compile
```### 5. Migrate the project to your preferred network
```bash
yarn migrate --network rinkeby
```---
## License
[MIT](https://github.com/YosephKS/truffle-opensea-nft/blob/master/LICENSE)