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 don’t 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 it’ll ensure your app doesn’t break. Do note that the videos do not specify the version of modules used in them, so here’s 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 don’t miss out on the newer features. Modules & Versions for Project PhotoGRID (As used in the videos) Module Version Installation Instructions Express 4.4.3 npm install [email protected] –-save Socket.io 1.0.5 npm install [email protected] –-save Hogan-Express 0.5.2 npm install [email protected] –-save knox 0.9.2 npm install [email protected] -–save formidable 1.0.17 npm install [email protected] –-save gm 1.20.0 npm install [email protected] –-save mongoose 4.1.9 npm install [email protected] --save

Photo Grid Before You Begin PDF

Embed Size (px)

DESCRIPTION

Before you begin

Citation preview

PhotoGRID–BeforeyouBegin|ImportantPLEASENOTE::Thisentiresectionisbeingre-rewrittenandre-recordedtosupportlatestversionofmoduleswithamuchbetter,tighterandoptimizedcodebase+ES6.So,watchoutfortheupcomingreleases.Tillthen,pleasereadthesectionbelowsothatyoudon’trunintoanyproblemswiththecodedemonstrated.

Toavoidbreakingtheappbecauseofmoduleversionupgrades,pleaseensureyoufollowtheinstructionsbelowandinstallspecificversionsofthemoduleslistedhere.

Whenthevideoshowssomethinglikethis:

npm install socket.io --save

Instead,dothefollowing:

npm install [email protected] --save

Noticetheextraportionmarkedinred.ThiswillfetchtheversionofthemodulethatIhadusedwhencreatingthesescreencastsandit’llensureyourappdoesn’tbreak.Donotethatthevideosdonotspecifytheversionofmodulesusedinthem,sohere’salistformodulesandversionnumbersasusedinthischapter.UseitasareadyreckonerwheneverIinstallamoduleinthescreencasts.Havingsaidthat,towardstheendofthechapter,Iwillincludeadocumentthatcontainsdetailsaboutnewerversionsandtheirchangessoyoudon’tmissoutonthenewerfeatures.

Modules&VersionsforProjectPhotoGRID(Asusedinthevideos)

Module Version InstallationInstructionsExpress 4.4.3 npm install [email protected] –-save Socket.io 1.0.5 npm install [email protected] –-save Hogan-Express 0.5.2 npm install [email protected] –-save knox 0.9.2 npm install [email protected] -–save formidable 1.0.17 npm install [email protected] –-save gm 1.20.0 npm install [email protected] –-save mongoose 4.1.9 npm install [email protected] --save

ORHere’sasnapshotofpackage.jsonthatwillinstallalltheabovedependenciesandtheircorrectversionsinoneshot.Copyandpasteitintoablanktextfile,savethisfileaspackage.jsoninyourappfolderandrunnpminstalltoinstallallthesedependenciesinonego.Donotethatifyou’refollowingthisstep,thenignoreallnpminstallstepsasshowninthevideos.

{ "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,ifsomethingdoesn’twork,letmeknowandI’llhelpyououtwithit.

HappyLearning,SachinB2ndOctober,2015