You are on page 1of 2

PhotoGRID

Before you Begin | Important


PLEASE NOTE :: This entire section is being re-rewritten and re-recorded to support latest
version of modules with a much better, tighter and optimized codebase + ES6. So, watch out
for the upcoming releases. Till then, please read the section below so that you dont run into
any problems with the code demonstrated.

To avoid breaking the app because of module version upgrades, please ensure you follow the
instructions below and install specific versions of the modules listed here.
When the video shows something like this:
npm install socket.io --save
Instead, do the following:
npm install socket.io@1.0.5 --save
Notice the extra portion marked in red. This will fetch the version of the module that I had used
when creating these screencasts and itll ensure your app doesnt break. Do note that the
videos do not specify the version of modules used in them, so heres a list for modules and
version numbers as used in this chapter. Use it as a ready reckoner whenever I install a module
in the screencasts. Having said that, towards the end of the chapter, I will include a document
that contains details about newer versions and their changes so you dont miss out on the
newer features.

Modules & Versions for Project PhotoGRID (As used in the videos)
Module
Express
Socket.io
Hogan-Express
knox
formidable
gm
mongoose



Version
4.4.3
1.0.5
0.5.2
0.9.2
1.0.17
1.20.0
4.1.9

Installation Instructions
npm install express@4.4.3 -save
npm install socket.io@1.0.5 -save
npm install hogan-express@0.5.2 -save
npm install knox@0.9.2 -save
npm install formidable@1.0.17 -save
npm install gm@1.20.0 -save
npm install mongoose@4.1.9 --save

OR
Heres a snapshot of package.json that will install all the above dependencies and their
correct versions in one shot. Copy and paste it into a blank text file, save this file as
package.json in your app folder and run npm install to install all these dependencies in one
go. Do note that if youre following this step, then ignore all npm install steps as shown in the
videos.
{
"name": "Photogrid",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "BSD-2-Clause",
"dependencies": {
"express": "4.4.3",
"socket.io": "1.0.5",
"hogan-express": "0.5.2",
"knox": "0.9.2",
"formidable": "1.0.17",
"gm": "1.20.0",
"mongoose": "4.1.9"
}
}

Finally, if something doesnt work, let me know and Ill help you out with it.
Happy Learning,
Sachin B
2nd October, 2015

You might also like