1.0.0 • Published 2 years ago

judoscale-sample-express v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Judoscale Demo (Express)

A tiny Node.js app for testing Judoscale.

Deploy


Local Run

  • Assuming you'll want to run this sample App locally "as is" first make sure you have Heroku CLI installed.
    heroku -v
  • Make sure you are at the sample app root: sample_apps/express_web
  • It is good practice to have NODE_ENV declared, for this:
    touch .env && echo "NODE_ENV=development" >> .env
  • Install dependencies:
    npm install
  • Then run the app:
bin/dev

This will run not only the app but also Judoscale proxy so you can check the metrics being collected by it.

In case you are working on one of Judoscale's adapters within this project you can replace the NPM published one for a local version.

  • Uninstall the original package

    npm uninstall judoscale-node
  • Replace it with the local copy

npm install "../../web"