Live demo @ stackarius.blocklistener.com
Find more info about this project and blockstack in our medium article
This project is under the GNU GENERAL PUBLIC LICENSE Version 3.
This project was generated with Angular CLI version 6.2.5. Install with
npm install -g @angular/[email protected]
See blockstackjs doc.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Angular-cli uses a webpack.config that do not include the nodejs crypto lib.
ERROR in ./node_modules/blockstack/lib/keys.js
Module not found: Error: Can't resolve 'crypto' in 'node_modules/blockstack/lib'
See workarounds see also :
- angular/angular#23398
- angular/angular-cli#1548
- https://codeburst.io/customizing-angular-cli-6-build-an-alternative-to-ng-eject-a48304cd3b21
- https://github.com/meltedspark/angular-builders/tree/master/packages/dev-server
- intall dev depencency
$ npm i -D @angular-builders/custom-webpack
- modify your angular.json change the @angular-devkit/build-angular:browser builder to @angular-builders/custom-webpack:browser
- create a new file
webpack.config.js
under your root folder (next to package.json) - If you want to run ng serve with custom webpack configuration (given you performed all the above steps)
$ npm i -D @angular-builders/dev-server
- in angular.json in the "serve" step, replaces @angular-devkit/build-angular:dev-server by @angular-builders/dev-server:generic