nurcinozer / moody-dapp

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

Home Page:https://moody-dapp.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 💭

https://moody-dapp.vercel.app


Languages

Language:TypeScript 95.6%Language:Solidity 2.2%Language:JavaScript 1.6%Language:CSS 0.6%