A Boggle solving, full stack web application.
- Clone the repo
- Install or otherwise make available Node 5.11.0 (others will probably work, I use nodenv to avoid system installs)
- cd into the project
- run
npm install
- cd into
api-server
- run
npm install
npm test
will run the jasmine specsnpm start
will kick off the wepack dev server, access the client atlocalhost:5000
- open a second terminal, cd into the folder
api-server
and typenpm start
, this will start the express server locally and xhr calls from client should work, you can access the server directly atlocalhost:3000
npm run build
will build to the dist foldernpm run repl
will get you into the groovy babel-node REPL, with the ES6 polyfill in scope.
Thanks to the babel test helper, jasmine is automatically transpiling the source code, so TDD is easy. And, the webpack dev server with hot module loading makes local development dreamy.
The current configuration of this is not useful for development, there are no local drives mapped for source code. So, you need to prep the static assets first with the webpack build and they will be copied over to the nginx container.
- run
npm run build
in top level project docker-compose build
docker-compose up
- access the site at localhost on port 80