/testing-your-dapp

Probando tus aplicaciones descentralizadas, proyecto de ejemplo

Primary LanguageJavaScriptGNU Affero General Public License v3.0AGPL-3.0

Table of Contents

🏄 Get Started

This Dapp is built with create-web3-dapp

To start local development:

git clone git@github.com:natachadelarosa/testing-your-dapp.git
cd testing-your-dapp

Go to backend and run:

cd backend

npm install

npm run build

npm run test # To run your tests

npm run node # To run the local node

# In a separate terminal window
npm run deploy-local 
#make sure to copy the contract address to replace it in the frontend/pages/components/panel.jsx

In a separate terminal window, go to frontend and run

cd frontend

npm install

Finally, set environment variables to use this local connection in .env in the app:

# modify env variables
cp .env.dist .env

npm run dev

This will start the frontend development server under http://localhost:3000.