Coder Social home page Coder Social logo

trgpwild / agenda-in-solidity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from guisantos/agenda-in-solidity

1.0 1.0 0.0 24 KB

A simple contact agenda coded in solidity with tests in javascript. Using trufflenetwork, testrpc and visual studio code.

JavaScript 100.00%

agenda-in-solidity's Introduction

Simple Agenda in Blockchain

Code sample for a simple contact agenda in the Ethereum Blockchain. A prototype coded for educational purpose, to learn and improve solidity and ethereum development skills, should not be used in production.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • NodeJs
  • Truffle Framework
  • TestRPC
  • A TextEditor(I use Visual Studio Code)

Installing

  1. Install Node Js

NodeJs Download

  1. Install Truffle Framework and TestRPC
$ npm install -g npm
$ npm install -g -production windows-build-tools
$ npm install -g ethereumjs-testrpc
$ npm install -g truffle

Running the tests

After install the required packages, you'll need to open cmd (or similar) in the project folder.

  1. Execute the following command
testrpc
  1. Open a new cmd
truffle migrate
truffle test

Obs

I'll update the project with a UI, then you'll be able to use a TestRPC Account, connect with Metamask and test the smart contract functions:

  1. Insert new Contact
  2. Count the Contacts
  3. Delete a Contact
  4. Search a Contact with his Number

agenda-in-solidity's People

Contributors

guisantos avatar

Stargazers

 avatar

Watchers

 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.