Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jharsh1202/ethereum-todo-list
https://github.com/jharsh1202/ethereum-todo-list
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/jharsh1202/ethereum-todo-list
- Owner: jharsh1202
- Created: 2022-04-10T11:09:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-04-10T12:01:41.000Z (over 2 years ago)
- Last Synced: 2023-08-05T09:52:49.089Z (over 1 year ago)
- Language: JavaScript
- Size: 116 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Installation
Way 1 (Recommended):
Use this ready to use docker image.
docker pull 2017003525/blockchain-development
docker run -it --name ethereum_todo_list -p 8576:8545 -p 80:3000 -p 81:3001 2017003525/blockchain-developmentTo open more terminals for this container run,
docker exec -it ethereum_todo_list bash
Way 2: (Longer method, create docker image from scratch):
docker run -it ubuntu
docker run -it --name ethereum_todo_list -p 8576:8545 -p 80:3000 -p 81:3001 ubuntuon your container execute below:
apt-get update && apt-get upgrade
apt-get install sudo build-essential python3 wget curl
Then install nvm from https://github.com/nvm-sh/nvm#install--update-scriptOn above link there must be these two commands but with updated versions
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bashthen install node and npm with:
nvm install node
node install npm
npm install npm
after executingnvm install-latest-npm
you'll find a statement to update npm to the latest version, execute that command, which should look like, `npm install -g [email protected]`, after that install truffle
npm install -g truffle
there will be a permission issue in executing above command for which you've to execute
sudo chown -R $(whoami)
**Note:** the above command has path to `node_modules` you need to find the path to your node_modules from your error. in my case it was `/root/.nvm/versions/node/v17.9.0/lib/node_modules/` so i executed, `sudo chown -R $(whoami) /root/.nvm/versions/node/v17.9.0/lib/node_modules/`
retry `npm install -g truffle`
after this you should be done with installation, but you would face problems where you couldn't execute the truffle file.
for this just allow your truffle file to be executed by running:
`chmod u+x ` you may find the path to truffle with which truffle, execute as below.`chmod u+x /root/.nvm/versions/node/v17.9.0/bin/truffle`
For Ganache installation:
npm install ganache --global
To your package.json add,
"scripts": {
"ganache": "ganache --wallet.seed myCustomSeed"
}
Execution
Execute Ganache, this will start your personal blockchain network on your local device.
npm run ganache -h 0.0.0.0you should be able to see output something like `RPC Listening on 0.0.0.0:8545`
now execute truffle console, make sure you add correct port number like above `8545` in file `truffle-config.js` of your code, when you use it.
Now for development and deployment of your own smart contracts, execute in your project directory ie.
truffle consoleAgain in in your project directory ie. , execute
npm run dev
Now you should be able to access the todolist UI with browser on your host OS with
http://localhost/Now you need to configure metamask extension to be able to access your blockchain through your browser.
## 🤝 Contributing
```bash
1. Fork the repository
2. Do the desired changes (add/delete/modify)
3. Make a pull request
```Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.