Giter Site home page Giter Site logo

dapper-create-org's Introduction

Create an Organization Manager Contract

Documentation

https://github.com/metaXchain/dapper-create-org

Repository Information

Start

First install git, node, npm, & truffle if you do not have them already.

To install project dependencies run: npm install

If you get installation error try deleting the package-lock.json file if it exists

Contracts

You will see two additional contracts added to this repository.

1.) Answers.sol: which includes the completed version of the annotated Organizations.sol

2.) Members.sol: This contract is and extended version of the Organization.sol contract. It includes functionality to for organizations to add members. First the contract creator must register and organizaiton to its public key, then only the organization itself can add and remove members in the organization. This means if an organization was registered to a public key, now only that public key/wallet that the organization is registered with is able to update their own member list.

Local Deployment and Testing Information

  • If not done so already install testrpc on your computer

  • Development deployment/testing utilizes testrpc

  • mnemonic for your network should be copied into the secrets.json file

  • Look in truffle.js for deployment configurations. You shouldn't need to modify this unless you want to modify network

Local testing

Depending on which contract you want to test and deploy, you will need to go to the migrations/2_deploy_contracts.js folder and change the name of the contract you wish to work with. Currently it is set up to deploy Answers.sol.

Run testrpc in your terminal: testrpc -m 'put your mnemonic from secrets.json here'

Then run: npm run test

Local compiling and deployment

npm run compile

npm run deploy

When you run npm run compile truffle compiles the contracts and puts the abi files in the /build directory.

Testing Alernative Commands

truffle test
truffle compile
truffle migrate --reset --network=development

Instructions for Dapper Bootcamp

1.) Open Organizatoion.sol in Remix IDE

2.) Read over commented document

3.) Try and recreate this Solidity code based on the comments

4.) Work with others

  • Answers will be provided after class
  • This repository includes working tests with correctly constuceted code

Resources

License

MIT

dapper-create-org's People

Contributors

porteron avatar

Watchers

miguel avatar James Cloos avatar Edwin Cheung avatar Ken Brook avatar  avatar jon roethke avatar

Forkers

johntran

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.