Giter Site home page Giter Site logo

leogrambert / solidity-lottery Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 1.57 MB

Lottery system on Ethereum Blockchain using Solidity and Smart Contract

JavaScript 77.61% Solidity 6.34% HTML 10.70% CSS 5.35%
blockchain javascript mocha nodejs solidity truffle web3 reactjs smart-contract

solidity-lottery's Introduction

Lottery system on Ethereum Testnet Goerli Blockchain using Solidity and Smart Contract

Installation

cd Lottery
npm install
cd Front
npm install

Deploy Smart Contract

1/ Create .env in Lottery folder and put your TEST account. Don't use your real account.

PRIVATE_KEY=**** **** **** **** **** **** **** **** **** **** **** ****
INFURA_URL=******

2/ Call deploy script in order to deploy the smart contract on Goerli Testnet

cd Lottery
npm run deploy

3/ Copy the interface and your account address from terminal

Set up the front application

Put copied information and pasted it in /src/utils/lottery.js

npm start

Go to localhost:3000

Tests Smart Contract

With Mocha

cd Lottery
npm run test

App Result

solidity-lottery's People

Contributors

leogrambert avatar

Watchers

 avatar  avatar  avatar

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.