Photo gallery uses several open source projects to work properly and for tests:
- Node.js - JavaScript runtime built on Chrome's V8 JavaScript engine
- Express.js - Node.js web application framework
- MongoDB - NoSQL database
- EJS - Semantic template
- Grunt - JavaScript task runner
- Gulp - JavaScript toolkit for automating tasks
- Mocha - JavaScript test framework
- Download and extract the latest version of Photo gallery
- Install the dependencies and devDependencies:
$ cd photo_gallery
$ npm install
- To install global dependencies for making tests run:
$ npm install -g grunt
$ npm install -g grunt-cli
$ npm install -g mocha
$ npm install -g jshint
$ npm start
After that your web application is available on:
http://localhost:3000
- To automatically start the server while development run:
$ nodemon
- To create bundle run:
$ gulp
- To watch file changes and create bundle run:
$ gulp watch
App settings can be changed in "settings.js"
- To automatically run all platform tests use:
$ grunt
Platform tests include:
- Code linting (JSHint)
- URL tests
- Cross pages tests
- Stress tests
To run browser tests use URL with query string e.g.:
http://localhost:3000?test=1
- or:
http://localhost:3000/upload?test=1
MIT