Skip to content

DevTK0/user-profile-dapp

Repository files navigation

Treasure Hunter

This is a prototype for a decentralized user management system.

The prototype should support the following functions:

  • user management (create, ban, update role, update password)
  • session monitoring and management (monitor login sessions, block existing user session)
  • role based access permissions

Local Development

Please ensure that you have node installed on your computer.

To run the development server:

npm install
npm run dev

Open http://localhost:3000 with your browser to see the result.

Environment Variables

API_URL=https://eth-goerli.g.alchemy.com/v2/<Alchemy API URL>
API_KEY=<Alechmy API Key>
PRIVATE_KEY=<WALLET PRIVATE KEY>
CONTRACT_ADDRESS=<USERS SMART CONTRACT ADDRESS>

Hardhat

Hardhat commands:

npx hardhat help
npx hardhat test
npx hardhat compile
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.ts

About

Prototype for a decentralised user management system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published