Viniswap 1.0

Configure the apache server on alpha to accept and redirect viniswap petitions:

Domain http://viniswap.costaflores.com

<VirtualHost *:80> ProxyPreserveHost On ProxyRequests Off ServerName viniswap.costaflores.com ProxyPass / http://10.112.48.25:2018/ ProxyPassReverse / http://10.112.48.25:2018/ ProxyPass /mtb19/ http://10.112.48.25:2019/ ProxyPassReverse /mtb19/ http://10.112.48.25:2019/ <Proxy *> Order deny,allow Allow from all </Proxy> CustomLog logs/viniswap.costaflores.com.log combined ErrorLog logs/viniswap.costaflores.com.error.log </VirtualHost>

App Installation on echo

Install NVM to upgrade NODE to an exact version

First install NVM:

[root@echo viniswap]# curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 12819 100 12819 0 0 17974 0 --:--:-- --:--:-- --:--:-- 17953 => Downloading nvm from git to '/root/.nvm' => Cloning into '/root/.nvm'... remote: Enumerating objects: 267, done. remote: Counting objects: 100% (267/267), done. remote: Compressing objects: 100% (242/242), done. remote: Total 267 (delta 31), reused 80 (delta 15), pack-reused 0 Receiving objects: 100% (267/267), 119.47 KiB | 0 bytes/s, done. Resolving deltas: 100% (31/31), done. => Compressing and cleaning up git repository => Appending nvm source string to /root/.bashrc => Appending bash_completion source string to /root/.bashrc => Close and reopen your terminal to start using nvm or run the following to use it now: export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion [root@echo viniswap]#

 

Once the nvm is installed, we install the v10.18 version of the node:

[root@echo viniswap]# nvm install 10.18 Downloading and installing node v10.18.1... Downloading https://nodejs.org/dist/v10.18.1/node-v10.18.1-linux-x64.tar.xz... ######################################################################## 100,0% Computing checksum with sha256sum Checksums matched! Now using node v10.18.1 (npm v6.13.4) Creating default alias: default -> 10.18 (-> v10.18.1) [root@echo viniswap]# node -v v10.18.1 [root@echo viniswap]#

Install YARN

Install VINISWAP

Follow instruccions of GitHub proyect on GitHub - openvino/viniswap

Clone the project:

 

Rename de new folder for MTB18 app:

 

Go to new folder:

 

Create .env file and paste configuration code for MTB18:

Finally install VINISWAP for MTB18

Start VINISWAP

Install VINISWAP for MTB19

Go to /opt/viniswap/ forder and clone again the project.

 

Rename de new folder for MTB19 app:

 

Go to new folder:

 

Create .env file and paste configuration code for MTB19:

 

Finally install VINISWAP for MTB19

Automate the viniswap app boot on echo

Create a user and group viniswap, and change ownership of everything in /opt/viniswap

Set up a systemctl service that starts the  /etc/systemd/system/viniswap-mtb18.service file:

 

 

 

Finally, reload the daemon list and to test and enable it to run on boot using this commands:

 

Enable the Service:

Restart the daemon

Start the service

Restart the service (to test)

Show logs

 

 

# Readme Winiswap ![language](https://img.shields.io/badge/language-javascript-blue.svg)

 

> Winiswap is a wine exchange

 

## :books: Table of Contents

 

  • [Installation](#package-installation)

  • [Usage](#rocket-usage)

  • [Support](#hammer_and_wrench-support)

  • [Contributing](#memo-contributing)

  • [License](#scroll-license)

 

## :package: Installation

 

### First check if you have YARN installed

 

Before installing this Readme Generator you need to check if you have `Node.js`and `YARN` installed on your computer.

 

To check if you have `Node.js` installed, run this command in your terminal:

 

```sh

node -v

```

 

If you get an answer like this, it means that `Node.js` is installed and you may go to the [next section](#then-install-the-readme-generator).

 

```sh

v10.18.0

```

 

To confirm that you have `YARN` installed you can run this command in your terminal:

 

```sh

yarn -v

```

 

If you get an answer like this, it means that `Node.js` is installed and you may go to the [next section](#then-install-the-readme-generator).

 

```sh

1.21.1

```

 

If `Node.js` or `YARN` is not installed you can install them on [this link](Node.js — Run JavaScript Everywhere )

 

Don't forget to update `YARN` after installing `Node.js`:

 

### Then install winiswap

 

```sh

yarn install

```

 

## :rocket: Usage

 

1-

Then, you can modify the .env file

 

SKIP_PREFLIGHT_CHECK=true

REACT_APP_PROVIDER_URL=https://mainnet.infura.io/v3/XXXXXXXX

REACT_APP_TOKEN_NAME=MTB18

REACT_APP_TOKEN_SUPPLY=16384

REACT_APP_TOKEN_ADDRESS=0x1bcfd19f541eb62c8cfebe53fe72bf2afc35a255

REACT_APP_REDEEM_MESSAGE='You can redeem your MTB18 tokens for bottles of wine, starting on May 6, 2021.'

 

2-

Insert images: nfc.png, sent.png and test.png to src/components/Gallery

 

3-

 

```sh

yarn start

```

 

## :hammer_and_wrench: Support

 

Please [open an issue](https://github.com/OpenVino/winiswap ) for support.

 

## :memo: Contributing

 

Please contribute using [Github Flow](GitHub flow - GitHub Docs ). Create a branch, add commits, and [open a pull request](Compare · leonard-henriquez/readme-boilerplate ).

 

## :scroll: License

 

[MIT](LICENSE)

LikeBe the first to like this