Giter Site home page Giter Site logo

cryptodoggies's Introduction

CryptoDoggies DApp

Purchase your favorite Doggies on the blockchain.

Ethereum Solidity Node.js

About

This repository houses the cryptodoggies.store's smart contract system. It has been built using Ethereum smart contracts.

This DApp was written as part of my Introduction to DApp development course available at http://learn.cryptodoggies.store

Developing This Contract

In order to develop this contract the following steps were taken to setup the environment.

Install and run Ganache CLI (formally you would have used TestRPC). Alternatively you can install Ganche UI.

$ npm install -g ganache-cli
$ ganache-cli

When you run Ganache you'll be presented with 10 accounts with private keys. The RPC service that you can interact with the blockchain through is also available on localhost:8545 for the CLI version and localhost:7545 for the GUI.

Navigate into the root of this project and install truffle (if you haven't already got it). Run the truffle test command to compile and test the contracts.

npm install -g truffle
npm run test
npm run dev

cryptodoggies's People

Contributors

t04glovern avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cryptodoggies's Issues

npm run test failed

`> [email protected] test C:\Crypto\Crypto-Udemy\cryptodoggies-base

scripts/test.sh

'scripts' is not recognized as an internal or external command,
operable program or batch file.`

Plartform
Win 10
npm v5.8.0
node v9.9.0

Log file

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Users\ACER\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'test' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'pretest', 'test', 'posttest' ]
5 info lifecycle [email protected]pretest: [email protected]
6 info lifecycle [email protected]
test: [email protected]
7 verbose lifecycle [email protected]test: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]
test: PATH: C:\Users\ACER\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Crypto\Crypto-Udemy\cryptodoggies-base\node_modules.bin;C:\Users\ACER\gcc\bin;C:\Users\ACER\gcc\libexec\gcc\x86_64-pc-mingw32\4.8.2;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\xampp\php;C:\ProgramData\ComposerSetup\bin;C:\Program Files\PuTTY;C:\curl;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;%NVM_HOME%;%NVM_SYMLINK%;C:\Users\ACER\AppData\Local\Programs\Python\Python36-32\Scripts;C:\Users\ACER\AppData\Local\Programs\Python\Python36-32;C:\Users\ACER\AppData\Local\Microsoft\WindowsApps;C:\Users\ACER\AppData\Roaming\Composer\vendor\bin;C:\Users\ACER\AppData\Local\GitHubDesktop\bin;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\Java\jdk1.8.0_144\bin;C:\Users\ACER\AppData\Local\Android\sdk\tools;C:\Users\ACER\AppData\Local\Android\sdk\platform-tools;C:\Users\ACER\AppData\Local\Microsoft\WindowsApps;C:\Users\ACER\AppData\Roaming\npm;C:\Users\ACER\AppData\Roaming\nvm;C:\Program Files\nodejs
9 verbose lifecycle [email protected]test: CWD: C:\Crypto\Crypto-Udemy\cryptodoggies-base
10 silly lifecycle [email protected]
test: Args: [ '/d /s /c', 'scripts/test.sh' ]
11 silly lifecycle [email protected]test: Returned: code: 1 signal: null
12 info lifecycle [email protected]
test: Failed to exec test script
13 verbose stack Error: [email protected] test: scripts/test.sh
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\Users\ACER\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:283:16)
13 verbose stack at EventEmitter.emit (events.js:180:13)
13 verbose stack at ChildProcess. (C:\Users\ACER\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:180:13)
13 verbose stack at maybeClose (internal/child_process.js:936:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
14 verbose pkgid [email protected]
15 verbose cwd C:\Crypto\Crypto-Udemy\cryptodoggies-base
16 verbose Windows_NT 10.0.15063
17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\ACER\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "test"
18 verbose node v9.9.0
19 verbose npm v5.8.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] test: scripts/test.sh
22 error Exit status 1
23 error Failed at the [email protected] test script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

problem using npm install

which version of node js has been used to build this currently running 12.19.0 and receive the following error

../../nan/nan_implementation_12_inl.h:103:42: error: cannot convert ‘v8::Isolate*’ to ‘v8::Localv8::Context’

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.