Heroku / node.js / 3scale
TypeScript HTML JavaScript Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.travis
lib/jasmine_examples
public
spec
src
target
tools
.DS_Store
.gitignore
.travis.yml
CHECKS
LICENSE
Procfile
Procfile.test
README.md
angular-cli.json
angular5.md
app.json
dev.sh
dokku.md
jasmine.js
karma.conf.js
newrelic.js
package-lock.json
package.json
test.sh
tsconfig.json

README.md

limitless-garden Build status

This is a small backend using

  • Heroku / dokku
  • node.js
  • 3scale
  • Mongo
  • Newrelic
  • d3.js

Continuous Integration is using travis

It is running on a Dokku server at https:lg.dokku.abarbanell.de

we have a HOWTO for setup with dokku on digitalocean

Local environment

Option 1: heroku local

How to run this locally for dev and test:

we have Procfile and Procfile.test to run the app or the tests locally. You will need to set some environment vars to run with heroku local:

$ heroku local -e .env.test -f Procfile.test

with something like this in your .env.test file (this will be .gitignore'd)

TEST_MONGO_URL:          <yourkey>
MONGOLAB_URI:            <yourkey>
NEW_RELIC_LICENSE_KEY:   NONE
NEW_RELIC_LOG:           stdout
PAPERTRAIL_API_TOKEN:    <yourkey>
THREESCALE_PROVIDER_KEY: <yourkey>
ENVIRONMENT:             test
LOG_LEVEL:               info
GOOGLE_CLIENT_ID:        <yourkey>
GOOGLE_CLIENT_SECRET:    <yourkey>
GOOGLE_RETURN_URL_HOST:  <yourkey>

Note: the threescale test will time out if you have no network, they need access to the threescale backend for authentication of the userkey

Note: the local development environment via devenv can run without network but needs network to pull new images from docker for VM creation and start. So you need network to start the devenv VM, but then you can continue to work offline.

Note: sometimes the dokku application just hangs and responds with error 502 or 503 from nginx. Have not yet found out why.

More information