Name: Markus Kral Student No.: 20078461
The app represents a digital cookbook. All non-modifying actions are open for everyone, e.g viewing all receipes, viewing one receipe, search receipe, ... Modifying actins like updating and deleting a receipe are only available for signed up and logged in users.
All these functions are tested on each push by travis (backend & frontend), coverage data is send to coveralls.io. The project can be pushed to heroku via its cli.
The server is written in nodejs. It uses mongodb with enabled authentication (mongodb://cookbook:12345678@localhost:27017/cookbookTest) for persistance. To push to heroku one needs the heroku-cli installed.
Clone the repo and instal all npm-packages:
$ cd /tmp/
$ git clone https://github.com/MarkusKral/WITcookbook.git
$ cd WITcookbook
$ npm install
$ cd webapp2
$ npm install
Build the app:
$ npm run build
Run the tests (from wit-folder):
$ cd ..
$ npm run coverage
Run the Server:
$ node webapp2/server.js
webapp2/test/acceptance/homePage.js
webapp2/test/acceptance/about.js
webapp2/test/acceptance/contact.js
webapp2/test/acceptance/listAll.js
webapp2/test/acceptance/latest.js
webapp2/test/acceptance/search.js
webapp2/test/acceptance/create.js
webapp2/test/acceptance/login.js
webapp2/test/acceptance/signup.js
https://travis-ci.org/MarkusKral/WITcookbook
As there have been some problems with my tests not exiting on travis, there is no automated deploymen.t This issue has been discussed with the lecturer. Tests do finish when simply called with mocha test/*.js but dont with the exact same command as an npm test script.
Deployment to heroku is therefore done with the heroku-cli.