i have create a private network with 2 nodes. I have connect an account with metamask from my private network and i have created a full dapp ( contract,front-end). Now i want to deploy the whole dapp on my private network without truffle. Can you help me pls!~?
Now I want to deploy the whole dapp on my private network without truffle.
You are misunderstood Panos, you can't deploy the whole dapp into the blockchain. But you can deploy contract into private blockchain and using frontend you can interact with smart contract.
You need to do the following things:
- Start your private network node
- Open remix, compile and deploy your contract into your local node. (In the remix, change the environment to Web3 provider and connect to your localnode IP address).
- Connect to your localnode using web3. Like this,
const web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); //Your localnode IP
- To interact with that using metamask you also need to change networks to your custom RPC from metamask
By doing this, you can successfully run the dapp without using truffle. I hope this will help you.