The Blockstack Browser Portal allows you to explore the Blockstack internet.
Blockstack Portal requires a local instance of Blockstack Core to run. To get started, first install Blockstack Core and then proceed with the installation of Blockstack Portal.
Blockstack for macOS contains a Blockstack Core API endpoint & a CORS proxy.
Please note these instructions have only been tested on macOS 10.12.4.
- Download and install the latest release of Blockstack for Mac.
- Start Blockstack
- Option-click the Blockstack menu bar item and select "Enable Development Mode"
- Clone this repo:
git clone https://github.com/blockstack/blockstack-portal.git
- Install node dependencies:
npm install
- Click the Blockstack menu bar item and select "Copy Core API password"
- Run
npm run dev -- --api_password <core-api-password>
replacing "" with the value you copied in the previous step.
- Install Blockstack Core. Please follow the instructions in Blockstack Core's repository.
- Setup the Blockstack Core wallet:
blockstack setup
. You will be prompted to select a wallet password. Skip this step if you already have a Core wallet - Start the Blockstack Core API:
blockstack api start --api_password <core-api-password> --password <wallet-password>
where "" is a String value you select and "" is the wallet password you selected previously. - Make sure there's a local Blockstack Core API running by checking
http://localhost:6270/v1/names/blockstack.id
to see if it returns a response.
- Clone this repo:
git clone https://github.com/blockstack/blockstack-portal.git
- Install node dependencies:
npm install
- Run
npm run dev-proxy
to start the CORS proxy - Run
npm run dev -- --api_password <core-api-password>
replacing "" with the value you selected in part 1.
Note: npm dev runs a BrowserSync process that watches the assets in /app
, then builds them and places them in /build
, and in turn serves them up on port 3000. When changes are made to the original files, they are rebuilt and re-synced to the browser frames you have open.
- Make sure you have a working installation of Xcode 8 or higher & valid Mac Developer signing certificate
- Run
npm install nexe -g
to install the "node to native" binary tool globally - Open the Blockstack macOS project in Xcode and configure your code signing development team (You only need to do this once)
- Run
npm run mac
to build a debug release signed with your Mac Developer certificate
Note: You only need to run nexe
once but the first build will take a while as nexe
downloads and compiles a source copy of node. Then it creates and copies the needed proxy binaries into place and copies a built version of the browser web app into the source tree.
Note: This has only been tested on macOS Sierra 10.12.4
- Ensure you have valid Developer ID signing credentials in your Keychain. (See https://developer.apple.com/developer-id/ for more information)
- Follow the instructions in the above section for building for macOS.
- Open the Blockstack macOS project in Xcode.
- Select the Product menu and click Archive.
- When the archive build completes, the Organizer window will open. Select your new build.
- Click "Export..."
- Click "Export a Developer ID-signed Application"
- Choose the development team with the Developer ID you'd like to use to sign the application.
- Click "Export" and select the location to which you would like to save the signed build.
- Make sure you've cloned the repo and installed all npm assets (as shown above)
- Run
npm run web
We do project-wide sprints every two weeks and we're always looking for more help.
If you'd like to contribute, head to the contributing guidelines. Inside you'll find directions for opening issues, coding standards, and notes on development.
This app uses the latest versions of the following libraries:
Along with many Gulp libraries (these can be seen in either package.json
, or at the top of each task in /gulp/tasks/
).
- If you haven't already, follow steps 1 & 2 above
- If you haven't already run
npm run dev
ornpm run build
at least once, runnpm run build
- Run all tests in the
tests/
directory with thenpm run test
command
- A single file can be run by specifing an
-f
flag:npm run test -f <PATH_TO_TEST_FILE>
- In the
PATH_TO_TEST_FILE
, it is possible to omit thetests/
prefix, as well as the.test.js
suffix. They will be automatically added if not detected.
- In the
Note: When running tests, code coverage will be automatically calculated and output to an HTML file using the Istanbul library. These files can be seen in the generated coverage/
directory.