Giter Site home page Giter Site logo

todo-list-dapp's Introduction

Smart Contract TO do List :

introduction:

Now a decentralized System works similarly, except you use a framework to contact a Blockchain network instead of a Server. Keeping this in mind, let’s get started! A Blockchain is essentially a Peer-to-Peer system, Ethereum included. There are many networks out there, but we will stick to Ethereum. Ehtereums run Smart Contracts, which are written in Solidity. If you have done any amount of Object-Oriented Programming before, Solidity will be easy to get on. For this tutorial you will need Web3.js, Truffle and Ganache. A quick introduction to all of this: Web3.js is used to communicate with your Blockchain, Truffle is used to interface with your solidity code, push it to the chain, test your smart contracts et al. and Ganache is used to run a local Blockchain to deploy your code to, since deploying to the Ethereum Virtual Network costs money (Ether) in the form of Gas.

ToDo List INPT DApp

A todo list powered by Ethereum smart contracts. User can optionally deposit prize for each task which will get it back in his prize account or will be punished by not being able to withdraw the prize back to his account during the punishment period.

Contents

team:

"INPT (national institute of posts and telecommunicatis) students"

  • SOULTANA AICHA.
  • NOUHAILA AYAR.
  • YOUSSEF QAISSOUMI.
  • AZZEDINE LAKHDAR.

Installation

  1. Install required packages.
npm install -g ganache-cli truffle
  1. Run a ganache-cli service.
ganache-cli
## Or fill out .env file parameters for deploying contract on Rinkeby testnet
# cp sample.env .env
# nano .env
## Optionally you can run ganache localy with provided mnemonic phrase
# . .env
# ganache-cli --mnemonic "$MNEMONIC"
  1. Navigate to blockchain directory and type below command and enter.
cd blockchain
npm install
truffle migrate --reset --compile-all --network development
## Deploy project on Rinkeby testnet
# truffle migrate --reset --compile-all --network rinkeby
  1. Then navigate to client directory to enter below commands.
cd ../client
npm install
npm run serve
## Build production files
# npm run build
  1. Open http://localhost:8080/ URL to interact with the contract. MetaMask extension should be installed on your browser and you need to select the network which match with where the contract is being deployed. Furthermore you can import your generated accounts in Truffle to cover the fees.

todo-list-dapp's People

Contributors

azzedine-prog avatar

Forkers

azzedine-prog

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.