Skip to content

jainam03/event-dapp-backend

 
 

Repository files navigation

event-dapp-backend

Running the Hardhat Project

This project uses Hardhat for Ethereum smart contract development, testing, and deployment.

Prerequisites

  • Node.js (v14 or later recommended)
  • npm (comes with Node.js)

1. Install Dependencies

Navigate to the project directory and install the required dependencies:

npm install

2. Compile Contracts

To compile the smart contracts:

npx hardhat compile

3. Run Tests

To run the test suite:

npx hardhat test

4. Run a Local Hardhat Node

To start a local Ethereum node for development:

npx hardhat node

This will start a local blockchain instance. You can deploy contracts to this network and interact with them.

5. Deploy Contracts

To deploy contracts to the local Hardhat node (in a separate terminal):

npx hardhat run scripts/deploy.js --network localhost

Note: If you use Hardhat Ignition for deployment, refer to the Ignition documentation and your ignition/modules folder for deployment scripts.

6. Interact with Contracts

You can use Hardhat tasks, scripts, or the Hardhat console:

npx hardhat console --network localhost

Additional Resources


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.3%
  • Solidity 41.7%