Upload
julio-gonzalez-rios
View
213
Download
0
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