Giter Site home page Giter Site logo

orakl-demo-mystery-box's Introduction

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.

orakl-demo-mystery-box's People

Contributors

kelvinthai avatar nick-bisonai avatar

Stargazers

Jay(김재훈) avatar Martin Kersner avatar

Watchers

Bryan avatar Martin Kersner avatar  avatar jo.lol avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.