Skip to content

Bisonai/orakl-demo-mystery-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mystery-box-orakl

HOW TO RUN THE DAPP FROM YOUR LOCAL MACHINE

  1. Deploying Smart Contracts:

Navigate to the contracts folder: cd contracts Install dependencies by running either yarn or npm install.

Create a .env file and specify the following parameters:

PRIV_KEY: Deployer wallet private key MNEMONIC: Deployer Mnemonic Deploy the smart contracts on Baobab network by executing the command:

yarn deploy baobab The newly deployed contracts can be found in contracts/config.json

Additionally, you can utilize the following commands:

yarn test: Run test cases. yarn compile: Compile contracts.

  1. Launching Metadata API:

Navigate to the metadata folder: cd metadata Install dependencies by running either yarn or npm install.

Run the metadata API: node main.js

  1. Running the Frontend:

Navigate to the frontend folder: cd frontend Install dependencies by running either yarn or npm install.

Configure the contract addresses inside:

src/lib/contracts/MysteryContract.ts src/lib/contracts/NFTContract.ts Start the website in a development environment: yarn dev For production environment: yarn build then yarn start

Running with Dockers:

Ensure your Docker service is up and running on your local machine. For installing Docker on a Mac machine:

brew install docker
brew install docker-compose

Build the Docker file: docker-compose -f docker-compose.yml build Run the Docker file: docker-compose -f docker-compose.yml up

This will start the application using Docker containers.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy