Warning: This is outdated code and probably contains vulnerabilities. Use it to study only.
This is a serverless dapp wallet built to study the integration angular and truffle for deployment on swarm. It Allows addresses that the owner of the contract gave permission to withdraw and deposit funds from it. See Screenshots section below to quickly understand what this app does.
- Install Metamask - Allows dapp browsing without the need for a full client.
- Connect metamask to the Rinkeby testnet.
- Access the dapp on swarm through swarm-gateways or, if swarm is misbehaving (this is experimental technology), access it here.
Note 1: The backend is not hosted on the main net. Instead, it is hosted on the Rinkeby testnet.
Note 2: The frontend is hosted on swarm, which has not been deployed to the main net at the time of writing. It may not be available or misbehave (this is experimental technology). Therefore is no guarantee that the frontend will be available when you access it. There is a chance that the Rinkeby testnet is lacking miners and/or has been abandoned, resulting in congestion.
- git - the open source distributed vcs.
- nodejs 5.0+ - Node.js JavaScript runtime.
- npm - A package manager for javascript.
- truffle - The most popular Ethereum development framework.
- testrpc - Fast Ethereum RPC client for testing and development.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
git clone https://github.com/mtsalenc/SimpleWallet.git
cd SimpleWallet/app
npm install
truffle compile
- Start
testrpc
on another terminal - Back on the previous terminal:
truffle migrate
- Copy the json inside build/contracts/SimpleWallet.json and paste it as an argument to the TruffleContract() function inside app/js/contracts-setup.js
- Open index.html on any modern browser.
This project is licensed under the MIT License