TECH STACH USED: META MASK(WEB 3) REACT (FRONTEND) NODE, EXPRESS (SERVER SIDE) MONGO DB (BACKEND) WEB3 INTEGRATION - IN DETAIL:
-
USED IN WALLET CONNECTION: the logic for this will be present in the frontend/src/components/profile.js in the connectWallet function . initially the user have to install metamask extension for browser , then he has to create an account in it ,then the metamask account id will be displayed in the form when he clicks the connect wallet button,then he has to click on save form to save in DB
-
USED WHILE POSTING A JOB: the main logic is in /frontend/src/components/postJob.js it contains two main function first handleSubmit function checks weather the wallet is connected or not through an api call inside useEffect, if the wallet is connected there is an another function called inside handleSubmit that is sendPayment function which contains the web3 logic ,further it initialize the payment and returns weather the user payed or not .if the user paied then the job will be added to DB and loaded in JOBS section