Skip to content

illjewminati/erc20puts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WandXOptions-Dapp

Dapp for Put options on ERC20 Tokens

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them

1. Node js
2. Node Package Manager
3. Angular v2 or above
4. Mongo DB to run the local database

Installing

A step by step series on how to get the development env running

Setting Up the Backend Environment

  1. Download this github project.
  2. Open WandXOptionsDapp
  3. Run the below commands in the Command Window by moving to the exact location where the project is inside the terminal.
> npm install
> npm install -g nodemon

Setting Up the Angular Environment

  1. Now open the Angular folder (here it is app folder) inside the terminal in another command prompt
  2. Run the below commands in the terminal
> npm install
> npm install @angular/cli
> ng serve

Setting up the MongoDB Local evnironemtn

  1. Please refer to the video links attached to setup Mongo, Express, Node, Angular

Video Links to setup the environment

  • MEAN - Mongo, Express, Angular, Node. This video will explain you how to setup the mongo environment and the rest of the environment also.

Development

WandXOptions-Dapp Front End Deployment over dev environment

  • cd app/
  • npm install (Have to do one time only, when setting up the project)
  • cd node_modules/wandx-options
  • npm install (Have to do one time only, when setting up the project)
  • npm run ganache-cli --> this will keep in running in background. Open a seperate terminal for rest of the commands --> import private key of 2nd address generated by ganache into metamask --> confirm that metamask is connected to localhost
  • npm run compile-dummytoken
  • npm run migrate-dev
  • Manual step, this will be changed in compile-dummytoken script in next update Open app/node_modules/wandx_options/build folder, open file dummyTokenBaseInfo.json. Replace address in the file with {"address":""} example, original file data -> 0xf322BE32FEb8ac0Bd75216BcB8d07214251C4376 new file data -> {"address":"0xf322BE32FEb8ac0Bd75216BcB8d07214251C4376"} Repeat the same for dummyTokenQuoteInfo.json file
  • cd ../.. (this should take you back into app folder, if not, adjust path accordingly so that you end up in app folder)
  • ng serve

About

Dapp for Put options on ERC20 Tokens

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 42.0%
  • JavaScript 37.1%
  • TypeScript 14.0%
  • HTML 6.9%