4darsh-Dev / DecenTrade

DecenTrade is a decentralized digital marketplace built on the Ethereum blockchain, enabling secure and transparent transactions for digital assets.
https://decentrade.vercel.app
MIT License
14 stars 63 forks source link

[Feature Request]: DecenTrade lacks a secure backend; currently, the frontend directly interacts with IPFS #47

Open AmanSingh494 opened 1 month ago

AmanSingh494 commented 1 month ago

Is there an existing issue for this?

Feature Description

Currently, DecenTrade relies on the frontend to interact with IPFS directly, which raises significant security concerns. Exposing IPFS requests through the frontend can potentially lead to vulnerabilities, such as unauthorized access to IPFS data or manipulation of requests. After Integrating a database, a secure backend would be needed to manage requests and functionalities.

Use Case

  1. Interactions with IPFS
  2. Interactions with Database

Benefits

Priority

High

Record

AmanSingh494 commented 1 month ago

I request @4darsh-Dev to assign this issue to me!!

4darsh-Dev commented 1 month ago

assignd to you @AmanSingh494 , you have do the setup for backend .

changes to be done

  1. make a separate folder /backend in the root
  2. add .env variables as done in frontend and one .env.example to avoid errors.
  3. ethereum.js which is present in frontend should be setup in backend
  4. use json web token for secure authentication