Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 31 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ npm install -g ganache-cli
npm install -g truffle
```

* Pre Requisite
```
Install Visual C++ Build Environment: Visual Studio Build Tools (using "Visual C++ build tools" workload)
Install Python 2.7 (v3.x.x is not supported), and run npm config set python python2.7
Launch cmd, npm config set msvs_version 2017
```
https://github.com/nodejs/node-gyp

* HD Wallet-enabled Web3 provider.Use it to sign transactions for addresses derived from a 12-word mnemonic.

```
Expand All @@ -31,9 +39,28 @@ npm install truffle-hdwallet-provider
## To Deploy Smart Contracts
1. cd ethereum
2. truffle compile
3. truffle migrate
4. Copy the "ListingsRegistry" address to "listingsregistry.js"
5. cd..
3. ganache-cli
4. truffle migrate
```
Running migration: 1_initial_migration.js
Deploying Migrations...
... 0x30885e36b79835b63a9fe56306ef68d1b8c05142144b3e2c49d44c729a23742f
Migrations: 0x9c1066b87d8c216987accd4ef5c056caf831e6a7
Saving artifacts...
Running migration: 2_deploy_contracts.js
Running step...
Deploying JobApplicationLibrary...
... 0xce3fe6daffb98c6abb7c3938669a5cef65fad622052a4900498ec4cb783741d2
JobApplicationLibrary: 0x69b925072040fb2f45de40e4e4812cd768f9ffcd
Linking JobApplicationLibrary to ListingsRegistry
Linking JobApplicationLibrary to Listing
Deploying ListingsRegistry...
... 0xf9abfd4f58c41c92fdb4f3905debf9c71a3d0fcdd5de0e2b93dbd76c02dadcae
ListingsRegistry: 0x7c9533d4797062cf4b59cd55711e6a4693887090
Saving artifacts...
```
5. Copy the "ListingsRegistry" address to "listingsregistry.js"
6. cd..

## To run the dApp on localhost:3000
1. npm run dev
Expand All @@ -48,4 +75,4 @@ npm install truffle-hdwallet-provider


## To View IPFS files
https://ipfs.io/ipfs/zb2rhbphRuwA8kSUq7y7r9FXgd8cBF1TRXzhcqrdbVsu7NQJH
https://ipfs.io/ipfs/zb2rhbphRuwA8kSUq7y7r9FXgd8cBF1TRXzhcqrdbVsu7NQJH
77 changes: 77 additions & 0 deletions ethereum/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@

### Solidity ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

Loading