Code: Select all
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
Import the public key used by the package management system.
The Ubuntu package management tools (i.e. dpkg and apt) ensure package consistency and authenticity by requiring that distributors sign packages with GPG keys. Issue the following command to import the MongoDB public GPG Key:
Code: Select all
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv
2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
Create the /etc/apt/sources.list.d/mongodb-org-3.6.list list file using the command appropriate for your version of Ubuntu:
Ubuntu 14.04
Code: Select all
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.6
multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
Code: Select all
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenia
Install Postman application or Postman extension in chrome application. And Open the postman
collection.
Code: Select all
https://www.getpostman.com/collections/271e0df5268510ce667e
POSTMAN COLLECTION SCREEN SHOT 1
POSTMAN COLLECTION SCREEN SHOT 2
Now you can see the ERC20 api collection in the sidebar of postman. Install the ERC20Token script API LAYER:
Move the source code Into the server.
Move into the script directory in the server.
Install forever plugin for running the script in background using the following command.
Code: Select all
- npm install -g forever
Code: Select all
Run “npm install”x
And Press Ctrl+C to exit the process.
Run “forever start index”. Now the server will be started.
Configure the url in postman collection and test the endpoints.
Front End:
Install the angular using the following command
Code: Select all
npm install -g @angular/cli
Take build using ng build —prod
Now the build would have been stored inside the dist folder.
Move the dist content to /var/www/html
Now browse the your ip address/admin/login or domain name.com/admin/login in browser.