Dapp for Put options on ERC20 Tokens
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.
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
A step by step series on how to get the development env running
Setting Up the Backend Environment
- Download this github project.
- Open WandXOptionsDapp
- 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
- Now open the Angular folder (here it is app folder) inside the terminal in another command prompt
- Run the below commands in the terminal
> npm install
> npm install @angular/cli
> ng serve
Setting up the MongoDB Local evnironemtn
- Please refer to the video links attached to setup Mongo, Express, Node, Angular
- MEAN - Mongo, Express, Angular, Node. This video will explain you how to setup the mongo environment and the rest of the environment also.
- 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