From 9a9da5657ebe585245138a2f631825e9ef0c4e2c Mon Sep 17 00:00:00 2001 From: xlightwaverx Date: Wed, 9 Aug 2023 22:23:18 +0000 Subject: [PATCH 1/3] Added installation instructions back --- installation.md | 63 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 installation.md diff --git a/installation.md b/installation.md new file mode 100644 index 00000000..ee45fdeb --- /dev/null +++ b/installation.md @@ -0,0 +1,63 @@ +# Prerequisite +1. Node, https://nodejs.org +2. Yarn, https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable + +# Installation: + +1. Running with yarn +```sh +yarn --ignore-engines && yarn serve +``` + +2. Building for web servers, like nginx, apache +```sh +yarn --ignore-engines && yarn build +cp -r ./dist/* +``` + +3. Running with docker +```sh +./docker.sh +docker run -d -p 8088:80 ping.pub/dashboard +``` + +# Enable LCD for Ping.pub (do this on the config for your chain) + +1. Set `enable = true` in `./config/app.toml` +``` +############################################################################### +### API Configuration ### +############################################################################### + +[api] + +# Enable defines if the API server should be enabled. +enable = true + +# Swagger defines if swagger documentation should automatically be registered. +swagger = false + +# Address defines the API server to listen on. +address = "tcp://0.0.0.0:1317" + +# MaxOpenConnections defines the number of maximum open connections. +max-open-connections = 1000 +``` + +2. add proxy server and enable CORS. NOTE: You must enable https as well. + +``` +server { + server_name juno.api.ping.pub; + listen 443; + location / { + add_header Access-Control-Allow-Origin *; + add_header Access-Control-Max-Age 3600; + add_header Access-Control-Expose-Headers Content-Length; + + proxy_pass http://:1317; + + } +} +``` +3. config your blockchain in [./src/chains]() From adcd896ec32419072b39b29baa22ae13caa0d819 Mon Sep 17 00:00:00 2001 From: xlightwaverx Date: Wed, 9 Aug 2023 23:01:56 +0000 Subject: [PATCH 2/3] Added working prereqs for Node using NVM --- installation.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/installation.md b/installation.md index ee45fdeb..62f61a51 100644 --- a/installation.md +++ b/installation.md @@ -1,6 +1,16 @@ -# Prerequisite -1. Node, https://nodejs.org -2. Yarn, https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable +# Prerequisites + +1. Node and Yarn - Aquired using Node Version Manager (https://github.com/nvm-sh/nvm) + +# Quick Install for Prerequisites + +1. Install Node Version Manager +```sh +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash +nvm install node # "node" is an alias for the latest version +nvm install-latest-npm # get the latest supported npm version on the current node version +npm install --global yarn +``` # Installation: From 388941d7c8e697c0e215d87780b154d4c1892060 Mon Sep 17 00:00:00 2001 From: Budd Grant <51795889+xlightwaverx@users.noreply.github.com> Date: Wed, 9 Aug 2023 19:10:25 -0400 Subject: [PATCH 3/3] Update installation.md --- installation.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/installation.md b/installation.md index 62f61a51..a214058a 100644 --- a/installation.md +++ b/installation.md @@ -1,14 +1,23 @@ # Prerequisites -1. Node and Yarn - Aquired using Node Version Manager (https://github.com/nvm-sh/nvm) +1. Node and Yarn - Acquired using Node Version Manager (https://github.com/nvm-sh/nvm) # Quick Install for Prerequisites 1. Install Node Version Manager ```sh curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash +``` +2. Install the latest version of NodeJS +```sh nvm install node # "node" is an alias for the latest version +``` +3. Install the latest version of NPM for Node +```sh nvm install-latest-npm # get the latest supported npm version on the current node version +``` +4. Install Yarn +```sh npm install --global yarn ```