This is a simple restaurant review dApp built to teach the full-stack web3 development workflow.
Before trying to run the application, set up the following environment files:
PORT=4000
RPC_URL=
DB_SOURCE=db.sqlite
CONTRACT_ARTIFACT_PATH=contracts/RestaurantReview.json
CONTRACT_ADDRESS=
MAPBOX_URL=https://api.mapbox.com
MAPBOX_TOKEN=
PINATA_URL=https://api.pinata.cloud
PINATA_TOKEN=
IPFS_GATEWAY_URL=https://ipfs.io
VITE_BASE_SERVER_URL=http://localhost:4000
VITE_MAPBOX_TOKEN=
VITE_CONTRACT_ADDRESS=
- Download docker and docker-compose.
- Clone this repository.
- Run
docker compose up --build
in the root directory of this repository. - Open
localhost:3000
in your browser to interact with the application.
- Download node.
- Clone this repository.
cd
into thecontracts
directory.- Run
npm install
to install the dependencies. - Run
npx hardhat node
to start the node. - Run
npx hardhat run scripts/deploy.js --network localhost
to deploy the contracts.
- Run
cd
into thebackend
directory.- Run
npm install
to install the dependencies. - Run
npm run dev
to start the server.
- Run
cd
into thefrontend
directory.- Run
npm install
to install the dependencies. - Run
npm run dev
to start the frontend.
- Run