express boilerplate with some extra stuff like livereload, pm2 config, client-side es6, and error notifications.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
dev
docs
public
routes
views
.gitignore
LICENSE
README.md
app.js
package-lock.json
package.json

README.md

express-o

Boilerplate stuff for express projects. Includes...

  • livereload for styles
  • es6 client-side javascript
  • local pm2 server for keeping logs and automatically restarting when files change

Installation

Download ZIP

Or run this command to install into the current directory.

curl -LO https://github.com/positlabs/express-o/archive/master.zip && unzip master.zip && rm master.zip && cp -R express-o-master/ ./ && rm -R ./express-o-master

Development

CLI Tools

  • Install NodeJS LTS version, and update package.json's engines field if necessary

  • Install PM2. This allows us to edit server files and automatically restart the server to pick up new changes. Also keeps logs organized, and can run in the background.

Setup

npm install: install node_modules

Local server

npm run start-local: start a dev server on localhost:3000, and show logs

Edit local server config in ./dev/env/local.json