The ultimate kitchen for making tasty Node waffles!
- Basic Express app ready to handle routes, body parsing, and asset serving
- Set up to render full pages and partials
- Swig JS integration for fast template rendering on the server
- Atomic design pattern via Stylus
- Automated tasks via NPM
First, make sure you have the latest versions of Node and NPM installed on your machine. The easiest way to do this is with Homebrew or NVM.
Then install all dependencies via NPM:
npm install
Start the Node application and automated build tasks in local development mode via NPM:
npm start
All automated tasks are ran via NPM and are configured in the package.json
file. This removes the need for unnecessary complexity introduced by build systems like Grunt or Gulp. Inspired by this blog post: How To Use NPM as a Build Tool
The easiest way to get any Node app running is to use Dokku. Spin up a Dokku droplet on Digital Ocean: Dokku Droplet by Digital Ocean
Note: Droplet must have at least 1GB of RAM or else the build will fail.
Here are some miscellaneous tips:
git remote add dokku dokku@mydomain.com:my-app-name
git push dokku master
dokku domains:add my-app-name mydomain.com
Read documentation here: Dokku - Let's Encrypt
dokku ps:set-restart-policy my-app-name always
dokku ls
docker logs <container ID>
For info on setting up other plugins (databases, etc), read this documentation: Dokku - Application Deployment