Needs advice

Hello, I'm trying to build an auction app with solidity and React but I need some server to handle data and internal logic and I don't know what tool to use for the backend for these reasons:

  1. when just using react and solidity it's not fast.
  2. when using Django and web3py, I can't transfer money with Metamask.

I've heard about Next.js and Node.js as the backend but I cant decide. I would appreciate any help.

6 upvotes·31.2K views
Replies (1)
DevOps Engineer at Indigo AG·

The real question here is: "What is the best way to deploy a decentralized application with a React front-end."

Building a decentralized application and integrating things such as Metamask require you to write smart contracts. This process is language agnostic as long as the smart contract is written and deployed to the chosen blockchain correctly.

Using classic Full-Stack HTTP Application frameworks like Django will no longer work because when we create something with Django, the server is centralized, defeating the purpose of the Blockchain architecture.

That being said, now the question is, what programming language do you want to use to deploy this decentralized application? - - is a Python framework for writing smart contracts.

As you have already learned and built with React, you might be better off sticking with the same runtime. NodeJS does have frameworks for deploying decentralized applications called the truffle suite:

This is a whole set of tools for writing decentralized applications using JavaScript and TypeScript.

Hope this helps.

5 upvotes·24.7K views
Avatar of Justin Rice

Justin Rice

DevOps Engineer at Indigo AG