My ES6 / node.js boilerplate.
- cycle.js + xstream + Immutable.js
- Babel
- browserify
- Gulp
- Sass
- autoprefixer
- Uglify JS (commented out by default)
- custom web server
- Download and unzip desired branch (see below)
npm updategulp- Navigate to http://localhost:3001
- all the things from
masterbranch - docker / PostgreSQL container
- node-postgres
- custom code to apply DB changes
-
Execute
docker-composefrom withindockerfolder:cd docker docker-compose upThis should build images and start containers:
blrplt-appwith application code and dev toolsblrplt-pgwith PostgreSQL database
-
Install all npm modules:
docker exec -it blrplt-app bash npm install -
Run gulp
docker exec -it blrplt-app bash gulp -
Navigate to http://localhost:3001
When app is stared, following steps are executed:
- Scan
sqlfolder for*.sqlfiles matching/^[0-9]{12}(-[^\.]+)?\.sql$/pattern - For each file check if timestamp (first part of filename) is present in
delta_sqltable - Execute file's content using
psqlif not already present indelta_sqltable - Update
delta_sqltable with executed file's timestamp
This ensures consistent development of database schema. Update can also be forced by executing dst/server/lib/sql.js directly.