A Node.js backend for managing blockchain interactions and NFT creation. This project enables users to mint, manage, and retrieve NFTs securely via smart contracts.
β
NFT Creation - Generate unique NFTs with metadata storage.
β
Smart Contract Interaction - Connects to Ethereum blockchain using Web3.js.
β
Secure Environment - Uses .env for storing sensitive credentials.
β
JSON Metadata Handling - Stores and retrieves NFT details in MediaNFT.json.
β
Express.js API - Provides REST endpoints for NFT operations.
π node_modules/ - Dependencies managed by npm.
π .env - Stores private blockchain credentials.
π MediaNFT.json - Stores NFT metadata.
π index.js - Main backend logic for handling requests.
π package.json - Project dependencies and configurations.
π package-lock.json - Ensures dependency consistency.
git clone https://github.com/Priyank911/FNA-Backend.git
cd FNA-Backendnpm installCreate a .env file and add your blockchain credentials:
INFURA_API_KEY=your_infura_api_key
PRIVATE_KEY=your_wallet_private_key
CONTRACT_ADDRESS=your_deployed_smart_contract_addressnode index.js- Open http://localhost:3000 (or the defined port).
| Method | Endpoint | Description |
|---|---|---|
POST |
/mint |
Mints a new NFT. |
GET |
/nft/:id |
Retrieves metadata of a specific NFT. |
GET |
/all-nfts |
Fetches all stored NFTs. |
npm install -g pm2
pm2 start index.js --name "FNA-Backend"vercel --prodπΉ Multi-chain support (Polygon, Binance Smart Chain, etc.).
πΉ IPFS integration for decentralized storage.
πΉ Advanced NFT metadata enrichment.
Contributions are welcome! Open a PR or raise an issue.
Licensed under MIT License.
π Stay Connected: GitHub Repository
π‘ "Empowering NFT creation with seamless blockchain integration!" π