Skip to content

moody is a decentralized app that allows you to create and share your moods with your friends 💭

Notifications You must be signed in to change notification settings

nurcinozer/moody-dapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

moody dApp - Work in progress

logo

What is moody?

moody is a decentralized application that allows users to share their mood with everyone on the Polygon network and The Graph.

Tech Stack

## Installation

  1. Clone the repo
git clone https://github.com/nurcinozer/moody-dapp.git
  1. Install dependencies
yarn
  1. Create an .env file in the backend folder and add the following variables
PRIVATE_KEY="YOUR_WALLET_PRIVATE_KEY"
POLYGONSCAN_KEY="YOUR_POLYGONSCAN_API_KEY"
  1. Create an .env file in the frontend folder and add the following variables
NEXT_PUBLIC_WEB3_STORAGE_KEY="YOUR_WEB3_STORAGE_API_KEY"
NEXT_PUBLIC_IMAGEKIT_ID="YOUR_IMAGEKIT_ID"
  1. Compile the smart contract
npx hardhat compile
  1. Deploy the smart contract
npx hardhat run scripts/deploy.ts --network mumbai
  1. Get your contract address and add it to the frontend/utils/constants.ts file
export const CONTRACT_ADDRESS = "YOUR_CONTRACT_ADDRESS"
  1. Deploy subgraph in backend/indexer folder by following the instructions here. (It is optional because the subgraph is already in hosted service)

  2. Get your subgraph url and add it to the frontend/utils/constants.ts file

export const SUB_GRAPH_URL = "YOUR_SUBGRAPH_URL"
  1. Run the app
yarn dev

Inspiration

About

moody is a decentralized app that allows you to create and share your moods with your friends 💭

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published