Note
Freeshard used to be called Portal. Don't be confused if you see the old name in the code or documentation. Our goal is to update everything step by step.
Each Shard is controlled by one or multiple terminals, trusted devices that have been paired with the Shard. This terminal comes in the form of a web application.
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Lints and fixes files
npm run lint
- Create a Shard if you don't have one yet (e.g. at trial.getportal.org)
- Enter its domain as the proxy target in
vue.config.js - Make sure that the
pathRewriteoption is disabled - Start the proxy together with the hot-reloading server with
npm run serve
- Start shard_core, look for instructions in its readme on how to do that
- Make sure that
http://127.0.0.1:8080is the proxy target invue.config.js - Make sure that the
pathRewriteoption is enabled - Start the proxy together with the hot-reloading server with
npm run serve - Look up the shard's URL in the logs right below where the logo is printed. It should be in the format
<shard_id>.<DNS_ZONE>. Open it in your browser at port8081 - Get a pairing code at http://127.0.0.1:8080/protected/terminals/pairing-code