{"id":15192523,"url":"https://github.com/anaselii/blockchain-integrated-backend-architecture","last_synced_at":"2026-02-26T09:25:12.460Z","repository":{"id":245287228,"uuid":"817531321","full_name":"AnasElii/blockchain-integrated-backend-architecture","owner":"AnasElii","description":"Blockchain Integrated Backend Architecture, is the Hybrid backend of the NFT Marketplace decentralized application (DApp).","archived":false,"fork":false,"pushed_at":"2024-06-29T12:10:52.000Z","size":228,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T07:14:53.595Z","etag":null,"topics":["dapp","graphql-server","nft","nft-marker-creator","nft-marketplace"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AnasElii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-19T23:29:51.000Z","updated_at":"2024-06-29T12:10:54.000Z","dependencies_parsed_at":"2024-06-21T05:53:32.528Z","dependency_job_id":"920e6c9d-201f-47fc-a29b-c3ba755f4362","html_url":"https://github.com/AnasElii/blockchain-integrated-backend-architecture","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":"0.050000000000000044","last_synced_commit":"90db9a5f991c9450e36c974af497f0184d9e72b4"},"previous_names":["anaselii/blockchain-integrated-backend-architecture"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnasElii%2Fblockchain-integrated-backend-architecture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnasElii%2Fblockchain-integrated-backend-architecture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnasElii%2Fblockchain-integrated-backend-architecture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnasElii%2Fblockchain-integrated-backend-architecture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnasElii","download_url":"https://codeload.github.com/AnasElii/blockchain-integrated-backend-architecture/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240137013,"owners_count":19753648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dapp","graphql-server","nft","nft-marker-creator","nft-marketplace"],"created_at":"2024-09-27T21:41:30.119Z","updated_at":"2025-11-12T09:30:51.941Z","avatar_url":"https://github.com/AnasElii.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blockchain-Integrated Backend Architecture\n\n\n## Overview\n\nBlockchain integrated backend is the Hybrid backend of the NFT Marketplace decentralized application (dApp) designed to create a cost-efficient and secure marketplace for Non-Fungible Tokens (NFTs). This project integrates both centralized and decentralized backends to optimize cost without compromising security. The smart contracts used in this project are developed with a focus on cost efficiency while ensuring the security of the marketplace. Additionally, this project serves as an educational resource for anyone interested in learning about building dApps and NFT marketplaces.\n\n## Features\n\n- **Decentralized and Centralized Backend**\nCombines the strengths of both decentralized and centralized systems to balance cost and performance.\n- **Cost-Efficient Smart Contracts**\nDesigned to minimize gas fees and other costs associated with blockchain transactions.\n- **Secure Transactions**\nEmphasis on maintaining the security and integrity of the NFT store.\n- **Technology Stack**\nUtilizes Node.js with Express for the backend, and various databases, including MongoDB, to manage and store data efficiently.\n\n## Technology Stack\n\n- **Decentralized Backend (Blockchain)**\nSmart contracts developed using Hardhat and OpenZeppelin, deployed on a blockchain platform\n- **Centralized Backend**\nNode.js, Express, GraphQl, Ethers.js, and more...\n- **InterPlanetary File System**\nThis project leverages Pinata for storing and retrieving media on IPFS, enhancing its decentralized architecture. Additionally, it’s designed to facilitate a smooth transition to a fully serverless backend. However, you have the option to modify the project to store all data on a central server instead of IPFS\n- **Databases**\nThis project is initially designed to work seamlessly with `MongoDB` by default. However, it can easily be adapted to integrate with other centralized or decentralized database solutions\n\n## Installation\n\n1. **Clone the Repository**\n   ```bash\n   git clone https://github.com/AnasElii/blockchain-integrated-backend-architecture.git\n   cd blockchain-integrated-backend-architecture\n   ```\n\n2. **Install Dependencies**\n   ```bash\n   npm install\n   ```\n\n3. **Configure Environment Variables**\n   - Create a `.env` file in the root directory.\n   - add `MONGODB_URI` to hold the MONGODB URI\n   - add the `COUNTERS_CONTRACT_ADDRESS` to hold the Counters address\n   - add the `NFT_MARKETPLACE_CONTRACT_ADDRESS` to hold the NFT Marketplace address\n   - add `PORT` with the desired port value as example `4000`. If you need another value you need to update it in the mintNFT API\n   -  add `ALCHEMY_API_KEY` to hold the Alchemy API key of the project or if you are using Infura use `INFURA_API_KEY`\n   - Visit `Pinata Cloud` to sign up for a new free account.\n   - add the `PINATA_JWT_TOKEN` and `NEXT_PUBLIC_NFT_MARKETPLACE_ADDRESS` fields\n   - Add necessary configuration settings (database credentials, blockchain network settings, etc.).\n\n## Usage\n  \n1. **Deploy Smart Contracts**\n  Follow the instructions in the [`contracts/`](https://github.com/AnasElii/blockchain-integrated-backend-architecture/tree/master/contracts) directory to deploy smart contracts using Hardhat to your preferred blockchain network.\n  \n1. **Start the Backend Server**\n   ```bash\n   node ./index.js\n   ```\n   Ensure your Express server is configured correctly and running.\n\n\n1. **Access the Marketplace Backend**\n Open your browser and navigate to `http://localhost:4000`, and also the `http://localhost:4000/graphql` To access the NFT_MArketplace Grpahql playground.\n\n**Note** You can update the port value from the envirment by chaging the PORT value in the `.evn` file\n\n## Educational Resource\n\nThis project is designed to be an educational resource. Whether you are a beginner or an experienced developer, you can use this project as a starting point to learn about building decentralized applications and NFT marketplaces.\n\n## Contributing\n\nWe welcome contributions to enhance the NFT Marketplace. To contribute:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-branch`).\n3. Make your changes and commit them (`git commit -m 'Add new feature'`).\n4. Push to the branch (`git push origin feature-branch`).\n5. Open a pull request to the `main` branch.\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for more details.\n\n## Contact\n\nFor any questions or feedback, please open an issue on GitHub or reach out to us directly.\n\n---\n\nWe hope you enjoy using the NFT Marketplace! If you have any suggestions or encounter any issues, please don't hesitate to let us know.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanaselii%2Fblockchain-integrated-backend-architecture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanaselii%2Fblockchain-integrated-backend-architecture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanaselii%2Fblockchain-integrated-backend-architecture/lists"}