Skip to content

abarbanell/limitless-garden

Repository files navigation

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

About

Heroku / node.js / 3scale

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published