Skip to content

rahul4581/Jobhunt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

TECH STACH USED: META MASK(WEB 3) REACT (FRONTEND) NODE, EXPRESS (SERVER SIDE) MONGO DB (BACKEND) WEB3 INTEGRATION - IN DETAIL:

  1. 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

  2. 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

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published