Skip to content

A social decentralized application to demonstrate the use of blockstack.

License

Notifications You must be signed in to change notification settings

cogarius/stackarius

Repository files navigation

Codefresh build status

Stackarius

This project was made for the blockstack world tour @ brussels.

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]

blockstack doc

See blockstackjs doc.

Development server

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.

Build

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.

Important ! troubleshooting: Module not found: Error: Can't resolve 'crypto'

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'

potential fix for angular-cli and crypto

See workarounds see also :

solution applied to this repo

  • 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

About

A social decentralized application to demonstrate the use of blockstack.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages