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 update
gulp
- Navigate to http://localhost:3001
- all the things from
master
branch - docker / PostgreSQL container
- node-postgres
- custom code to apply DB changes
-
Execute
docker-compose
from withindocker
folder:cd docker docker-compose up
This should build images and start containers:
blrplt-app
with application code and dev toolsblrplt-pg
with 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
sql
folder for*.sql
files matching/^[0-9]{12}(-[^\.]+)?\.sql$/
pattern - For each file check if timestamp (first part of filename) is present in
delta_sql
table - Execute file's content using
psql
if not already present indelta_sql
table - Update
delta_sql
table 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.