Skip to content

synycboom/dePassword

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DePassword

A decentrailzed password and file management. Only users have control over the data that being encrypted in Swarm and a smart contract.

Information

Architecture

depassword-architecture

Demo Video

Demo Link

Note that the demo is running on Rinkeby testnet for the smart contract, and Goerli testnet for the Bee node. Please change your network to "Rinkeby" before using the app.

The Bee node was already down some features might not work correctly

Deploy smart contracts on rinkeby network

$ cd contracts
$ npx hardhat compile
$ npm run rinkeby:deploy-v1

Deployed DePassword contract on Rinkeby: 0xEaf8FDc9ce9C59162f32d43C4128F648FA46b275

Running a web application

  1. Configure environment variables
$ cd fe
$ cat .env.example > .env
  1. If this is the first time, install dependencies
$ cd fe
$ npm ci
  1. Run the server
$ npm run start

Running a server

  1. You need to deploy your bee node. You can follow this guide https://docs.ethswarm.org/docs/installation/quick-start
  2. Fund your node and buy a batch of stamps. You'll get a batchID and wait for it to be ready to use.
  3. Configure environment variables, set your SWARM_POSTAGE_BATCH_ID and BEE_NODE_URL, and other variables.
$ cd server
$ cat .env.example > .env
  1. If this is the first time, install dependencies
$ cd server
$ npm ci
  1. Run the server
$ npm run build
$ npm run start