Skip to content

Photo gallery based on Node.js, Express, Bootstrap and vanilla Javascript

License

Notifications You must be signed in to change notification settings

paratagas/photo_gallery

Repository files navigation

Photo gallery

Simple image gallery

Photo gallery


Tech

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

Requirements

  • Tested successfully on Node.js v6.9+
  • Tested successfully on MongoDB v2.6+

Installation

$ 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

Launching

$ npm start

After that your web application is available on:

http://localhost:3000

Development

  • To automatically start the server while development run:
$ nodemon
  • To create bundle run:
$ gulp
  • To watch file changes and create bundle run:
$ gulp watch

Settings

App settings can be changed in "settings.js"


Testing

  • 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

License

MIT

Releases

No releases published

Packages

No packages published