Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snsakib/develop-smart-contract-for-nft-marketplace
This repository contains the project code of the online project "Develop Smart Contract for NFT Marketplace"
https://github.com/snsakib/develop-smart-contract-for-nft-marketplace
blockchain hardhat nft-marketplace smart-contracts solidity
Last synced: about 2 months ago
JSON representation
This repository contains the project code of the online project "Develop Smart Contract for NFT Marketplace"
- Host: GitHub
- URL: https://github.com/snsakib/develop-smart-contract-for-nft-marketplace
- Owner: snsakib
- License: mit
- Created: 2023-09-26T21:58:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-27T17:39:39.000Z (9 months ago)
- Last Synced: 2024-03-28T18:04:21.574Z (9 months ago)
- Topics: blockchain, hardhat, nft-marketplace, smart-contracts, solidity
- Language: JavaScript
- Homepage: https://www.educative.io/projects/develop-smart-contract-for-nft-marketplace
- Size: 222 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Develop Smart Contract for NFT Marketplace
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/your-username/mastering-state-management/blob/main/LICENSE)
Welcome to the repository for the project code of the online project [Develop Smart Contract for NFT Marketplace](https://educat.tv/3HcT7Gu).
This project is built on the Ethereum blockchain that enables users to mint, list, and trade non-fungible tokens (NFTs). The smart contract is written in **Solidity**, utilizing the **ERC721** token standard for unique token identification.
We’ll utilize the **Hardhat** framework to develop the smart contract. By using this technology, we can easily develop, test, and deploy the contracts. We’ll also use **OpenZeppelin**, a widely recognized library of reusable and secure smart contract components in our project.
The key features that this project will contain are as follows:
- **Minting:** Users can create and mint new NFTs by providing a token URI and setting an initial price for the NFT.
- **Listing:** NFTs can be listed for sale at a specified price. A listing fee is required for listing an NFT on the marketplace.
- **Buying:** Users can purchase listed NFTs by sending the required payment, transferring the ownership of the NFT to the buyer, and providing the necessary fees to the contract owner.
- **Retrieving:** Users can retrieve a list of all NFTs available on the marketplace and view their personal collection of NFTs.
## Installation
To get started with the course project code, follow these steps:
1. Clone this repository to your local machine using the following command:
```shell
git clone https://github.com/snsakib/develop-smart-contract-for-nft-marketplace.git
```2. Change to the project directory:
```shell
cd develop-smart-contract-for-nft-marketplace
```3. Install the dependencies using npm or yarn:
```shell
npm install
```
or
```shell
yarn install
```4. To run the unit test file, open a terminal and run the following command:
```shell
npx hardhat test
```5. Open a new terminal and run the following command to start the local Hardhat node:
```shell
npx hardhat node --hostname 0.0.0.0 --port 3000
```6. Open another terminal and run the following command to deploy the smart contract on the local Hardhat node:
```shell
npx hardhat run scripts/deploy.js --network localhost
```