Skip to content

hcz8x/laboratory

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mention

This is project initailly forked from Stellar Laboratory. With some modify to support Pi Network Developers Learning

laboratory

The PI Laboratory is a suite of tools to help one learn about exploring the Stellar network. See it in action: https://pi-laboratory.vercel.app/.

Developing

yarn start

Testing hardware wallets requires an HTTPS connection to enable U2F. The recommended way to do this is with ngrok. Once downloaded and authenticated, start ngrok, and tell the laboratory to start with a public URL.

./ngrok http 3000
# in a separate terminal
# the subdomain will appear in ngrok's output
yarn start --public randomsubdomain.ngrok.io

Building for production

yarn build

To build a production docker image using a clean docker build environment:

make docker-build
# or directly with docker
docker build -t lab:localbuild .

To build and run production build locally:

yarn production
# or
yarn prod:build
yarn prod:serve

Production uses Amplitude to emit metrics, so to fully emulate a production build, you'll need to set an AMPLITUDE_API_KEY variable in /public/settings/env-config.js file.

Internal documentation

The docs.md file contains code documentation on the laboratory. The docs.md is only relevant for developing the laboratory.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 48.8%
  • TypeScript 40.9%
  • SCSS 9.1%
  • CSS 0.8%
  • Dockerfile 0.2%
  • HTML 0.1%
  • Makefile 0.1%