AAbstraction__dirnameglobalvariable,159middleware,155,158module.
exports,160querystringparameter,158routes,156,158AngelListAPI,278app.
configure()method,47application.
jsmodules,292app.
param()method,257Authenticationpatterns,175auth.
jsmodules,278BBackbone.
jsapp,274Behavior-drivendevelopment(BDD)language,252bodyParser()method,257CCascadingStyleSheets(CCS)Less,182Sass,183Stylus,181checkAdmin()function,283Clustermodulefourprocesses,179logicalunits,180masterprocess,177processID,178serverresponse,179setupMaster()method,177workerprocesses,177Configurationmethods,33app.
configure(),47app.
enable()andapp.
disable(),34app.
set()andapp.
get(),34console.
log(request.
route)statement,110Create,read,update,anddelete(CRUD),99Cross-originresourcesharing(CORS),38Cross-siterequestforgery(CSRF),62,185DDatabaseconnectionapp.
listen()method,162environmentvariablesapproach,165inmodules,161JSONfileapproach,164streams,165decodeURIComponent()method,173DELETEmethod,259DerbyJS,207–210Domainmoduledomain.
on()function,200domain.
run()function,200error-domain,200error-no-domain,200setTimeout()function,199–200done(),253EEnvironments,33,45Environmentvariablesapproach,165ErrorhandlingHTTPstatuscodes,143JSON,142middleware,142returnkeyword,144uses,141Index339Express.
jsexpress-generator(seeGenerator)Installation,7MVC,3structureandmodules,28watch()method,29workingprinciples,4configuringsettings,6databaseconnections,5httpserverobject,6instantiations,5middleware,6routes,6third-partydependencies,5Express.
jsApp,273Express.
jsrequestobjectattributesandmethods,113$npminstallation,104package.
jsonfile,104request.
body,103,108request.
cookies,103,111request.
get()method,103,113request.
header()method,103,113request.
params,103,106request.
query,103–104request.
route,103,110request.
signedCookies,103,113sourcecode,115Express.
jsresponseobjectkitchen-sinkapp,119methodsandproperties,133response.
json()method,119,130response.
jsonp()method,119,132response.
localsobject,119,122response.
redirect()method,119,133response.
render()method,119response.
send()method,119,127response.
set()method,119,124response.
status()method,119,126–127sourcecode,134streamingvs.
nonstreaming,137–139F500InternalServerErrorstatus,129findByIdAndRemove()method,285findByIdAndUpdate()method,293findUserByUsername()function,90FrameworksCompound,213DerbyJS,207–210Geddy,213Hapi,213LoopBack,210–213Sails.
js,205–207Total.
js,213GGenerator,20codeimplementation,23execution,21expresscommand,13publicfolder,23routesfolder,23terminalcommand,21viewsfolder,23HHackHallappdefinition,263executionAngelListapp,265cookieandsessionsecrets,265MongoDBserver,268MongoDBshellmethod,266Procfile-basedapplications,264seed-script.
js,265Express.
jsApp,273Mochatests,310MongooseModels(seeMongooseModels)package.
jsonfile,272routesapplication.
jsmodules,292auth.
jsmodules,278index.
jsmodules,278main.
jsmodules,283posts.
jsmodules,295users.
jsmodules,286structure,271v3.
1.
0release,264Hapi,213HelloWorldapp,15app.
get()function,16HTTPresponseheaders,19HTTPstatuscode,19requesthandler,17response.
end()method,19response.
send()method,19terminalmessage,17texteditor,16Helmet,188HTTPmethods,94index340Iindex.
jsmodules,278Inputsanitation/validationerrormessages,191express-validator,190if-elsestatements,190index.
jadefile,191login.
jadetemplate,191request.
assert,190request.
validationErrors(),190test()method,190InstagramGallery,217JJSONfileapproach,164KKitchen-sinkapp,119LLess,182LoopBack,210–213Mmain.
jsmodules,283map()function,253Middleware,51,155,158app.
use()method,52body-parsermodule,59compression()method,56connect-busboymodule,72connect-cors,73connect-multiparty,73connect-redis,73connect-timeoutmodule,64cookie-parser,61cookiesandkegrip,73cookie-session,73CSRF,62errorhandler,66everyauthandpassport,73express-session,62express.
static()method,64express-validator,73helmet,73method-override,66morgan,58oauth2-server,73queryandquerystring,73raw-body,73response-time,67serve-favicon,68serve-index,69staticassets,73urlencoded(),60vhost,71Mochatests,310Model-view-controller(MVC),3MongoDBshellmethod,266MongooseModels,302AngelListprofile,306arrayswatches,304authorinformation,304Booleanflags,306comments,304findProfileById()method,307Mongoose/BSONdatatype,303Mongooseplug-ins,307newoperand,303ObjectIDs,307RegExp,303rolesarray,306text,303timestamps,305url,303Usermodel,305Mongoskin,256Multithreading.
SeeClustermoduleNNode.
jshttp.
createServer()method,100OOAuthmodule,276Ppackage.
jsonfile,256,272Parameters,87admin.
jadetemplate,90app.
param()method,91findUserByUsername()function,90middlewaremethod,91requesthandlers,100param()function,93posts.
jsmodules,295–296add()function,296del()function,299getPost()method,298updatePost()method,300Processpermissions,188Index341QQuerystring,104RRedis,171RepresentationalStateTransfer(REST),97request.
get()method,113request.
header()methods,113response.
end()method,119response.
render()callbackparameter,122RESTfulAPI,249BDDlanguage,252characteristics,250CRUDoperations,250dependencies,256idempotentmethods,251JSONformat,251MochaandSuperAgentmethods,251BDDlanguage,252contain()method,253done()callback,253map()function,253sourcecode,254testing,255nullipotentmethod,251serverimplementationapp.
param()method,257bodyParser()method,257DELETEmethod,259GETrequests,261morgan(logger)middleware,257POSTrequest,261sourcecode,259Routes,156,158Routing,94app.
all()method,98app.
VERB()methodget()/post()methods,95REST,97routerclass,98router.
route(path)method,99trailingslashes,98Runningapplicationsapp.
listen()functionapp.
jsfile,148asynchronousfunction,148https.
createServer()methods,150HTTPserver,149SSLprotocol,150–151app.
localsobject,145app.
mountpathproperty,146app.
on('mount',callback),147app.
path()method,147app.
render()method,145–146SSails.
js,205–207Sass,183SecureSocketLayer(SSL)protocol,149,151Securitytipscross-siterequestforgery,185helmet,188inputsanitation/validation,190processpermissions,188Settings,33custom,35Express.
jssystem,35casesensitiverouting,41envvariable,36etag,44jsonpcallbackname,38queryparser,45replacerparameter,40spacesparameter,40strictrouting,42subdomainoffset,45trustproxy,38viewcache,36viewengine,36views,38x-powered-byoption,42Socket.
IO,193eventlistener,197execution,197listen()method,195messageChange,195,197send()function,196Streams,165Stylus,181TTemplateenginesapp.
engine()method,77Blade,83Combyne.
js,83configurationstatements,76consolidatejs,84EJS__express()method,83index342Haml-Coffee,83Haml.
js,82Handlebars.
js,82Hogan.
jsadapters,83Jade,79,81–82overview,75renderFile()method,78render()function,76Swig,80,83top-downinclusion,82viewenginesetting,76Webfiller,83Whiskers,83Todoapp,223app.
jsfilebodyParser()middleware,233codeimplementation,236cookieParser(),233CSRFtoken,234express-sessionoption,233httpmethod,235logger,233methodOverride()middleware,233Mongoskin,232NPMmodules,232POSTmethod,235rendercalls,233require()function,231routes,234session().
,233taskscollection,232Completedpage,228Homepage,224lessfiles,247Listpage,225routesall_doneparameter,238completedflagvalue,239errorresults,239list()function,237multi\:trueoption,239next()function,238remove()method,240toArray()function,238update()method,239setupMongoDBinstallations,231package.
json,229templates,241index.
jade,243layout.
jade,242tasks_completed.
jade,246tasks.
jade,243U,V,W,X,Y,Zusers.
jsmodulesadd()method,287adminrights,288–289angelListProfile,290findByIdAndRemove(),289findOrAddUser()method,289getUser()method,286–287getUsers()method,286Mongooseschema,291update()method,288Index343
目前,我们都在用哪个FTP软件?喜欢用的是WinSCP,是一款免费的FTP/SFTP软件。今天在帮助一个网友远程解决问题的时候看到他用的是FlashFXP FTP工具,这个工具以前我也用过,不过正版是需要付费的,但是网上有很多的绿色版本和破解版本。考虑到安全的问题,个人不建议选择破解版。但是这款软件还是比较好用的。今天主要是遇到他的虚拟主机无法通过FTP连接主机,这里我就帮忙看看到底是什么问题。一...
看到群里网友们在讨论由于不清楚的原因,有同学的网站无法访问。他的网站是没有用HTTPS的,直接访问他的HTTP是无法访问的,通过PING测试可以看到解析地址已经比较乱,应该是所谓的DNS污染。其中有网友提到采用HTTPS加密证书试试。因为HTTP和HTTPS走的不是一个端口,之前有网友这样测试过是可以缓解这样的问题。这样通过将网站绑定设置HTTPS之后,是可以打开的,看来网站的80端口出现问题,而...
老鹰主机HawkHost是个人比较喜欢的海外主机商,如果没有记错的话,大约2012年左右的时候算是比较早提供支付宝付款的主机商。当然这个主机商成立时间更早一些的,由于早期提供支付宝付款后,所以受众用户比较青睐,要知道我们早期购买海外主机是比较麻烦的,信用卡和PAYPAL还没有普及,大家可能只有银联和支付宝,很多人选择海外主机还需要代购。虽然如今很多人建站少了,而且大部分人都用云服务器。但是老鹰主机...
500InternalServerError为你推荐
福建海峡银行股份有限公司可現場列印的全自動單面和雙面印相機支持ipad设置media杭州市西湖区翠苑第四幼儿园智慧校园采购项目支持ipad支持ipad支持ipad支持ipadphotoshop技术什么是ps技术
美国主机排名 vir bluevm 美国主机网 外国服务器 gitcafe 外国空间 网站保姆 免费smtp服务器 gtt 河南移动梦网 上海电信测速 免费ftp 测速电信 wordpress空间 香港ip winds 建站技术 weblogic部署 挂马检测工具 更多