How to install the ERC20 TOKEN INTEGRATION SCRIPT?

How to install the ERC20 Integration Module on a Cryptocurrency Exchange Script?
Post Reply
blockchainscripts
Site Admin
Posts: 184
Joined: Tue Apr 03, 2018 2:12 pm

How to install the ERC20 TOKEN INTEGRATION SCRIPT?

Post by blockchainscripts »

Install Node stable version(For UBUNTU)

Code: Select all

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
Install MongoDB(For UBUNTU)

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 a list file for MongoDB.

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
Ubuntu 16.04

Code: Select all

echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenia
Import Postman Collection

Install Postman application or Postman extension in chrome application. And Open the postman
collection.

Code: Select all

https://www.getpostman.com/collections/271e0df5268510ce667e
Paste the above link in the text box. And click import button.
erc1.jpg
erc1.jpg (33.61 KiB) Viewed 3299 times
POSTMAN COLLECTION SCREEN SHOT 1
erc2.jpg
erc2.jpg (31.86 KiB) Viewed 3299 times
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
Edit .env configuration values as per your requirement.

Code: Select all

Run “npm install”x
Run “node index seed user” to create admin user. If you want to change the admin credentials, open the index.js with the editor which you’re comfortable with. And change the credentials which you would find at the end of the file.

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
Get into the front end script.
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.
Post Reply

Return to “Installation Guide”