All posts tagged “nodejs

comment 0

Node.js dynamic settings

As I’m relatively new to Node I had to wrap my head around a very basic thing. Getting external variables into my app. Loading settings for different environments from config files and via environment variables (for heroku deployment) should supposedly be an easy challenge. However, none of the solutions I’ve found were well enough for my scenario:

  • Store config in json file.
  • Have different configuration files (development, production, …).
  • Load configs from environment variables.
  • Fallback from environment to config file.
  • App lives in one folder.
    Read More
comment 0

Let’s write a Laravel application – Project template

In web development there are tons of programs and tools and due to that also complex and very different development strategies.
Luckily dependency handling got a lot easier. For my Laravel project setup we will use 3 different package managers.
Every package manager of course manages a different resource, we will use composer for php packages, npm for everything related to Node.js and Bower for web packages.
Read More