more install script tweaks

This commit is contained in:
Aaron Blankstein
2017-05-16 14:38:00 -04:00
parent 113d964aa4
commit 48552f1af7
2 changed files with 28 additions and 6 deletions

View File

@@ -1,3 +1,12 @@
# Install Script
We provide a (script)[../images/scripts/ubuntu-17.04.sh] which will
perform all the steps outlined in this doc, creating a virtualenv of
core and installing portal in a subdirectory. It additionally creates some
scripts for starting core and portal together.
However, if you'd like to customize your install, step through it
yourself, or you are on a different distro, continue on with this doc!
# Setting up Blockstack Core API Service
@@ -23,7 +32,7 @@ pip install git+https://github.com/blockstack/virtualchain.git@rc-0.14.2
pip install git+https://github.com/blockstack/blockstack-core.git@rc-0.14.2
```
Get Blockstack core congifured with default settings and choose your Bitcoin wallet password
Get Blockstack core configured with default settings and choose your Bitcoin wallet password
```
blockstack setup -y --password BITCOIN_WALLET_PASSWORD --debug
```
@@ -41,11 +50,17 @@ Download Blockstack Portal and install its dependencies
```
git clone https://github.com/blockstack/blockstack-portal.git -bv0.8
cd blockstack-portal && npm install
cd blockstack-portal
npm install node-sass
npm install
```
Note that `blockstack-portal` depends on `node-sass` which can sometimes install strangely on Linux, running `npm install node-sass` before trying to install the other dependencies solves that problem.
# Running Blockstack Portal
Now we're ready to run our Core API service and start the Portal node app.
First, start the Core API service.
```
@@ -58,11 +73,17 @@ Start the CORS proxy.
npm run dev-proxy &
```
Start the Node Application, reading your API password from the Blockstack Core API config file.
Start the Node Application
```
npm run dev
```
Then you can open `http://localhost:3000/` in your browser to get to the portal.
You can copy your api password to your clipboard with this command:
```
grep api_password ~/.blockstack/client.ini | sed 's/api_password = //g' | xclip -selection clipboard
```
Open `http://localhost:3000/` in your browser (tested on Firefox and Chromium).