随笔分类 -  Node.js

上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要:In this lesson, you will learn how to use the Formidable nodejs-dashboard event loop delay to identify expensive operations in your code. An example a 阅读全文
posted @ 2016-11-29 20:32 Zhentiw 阅读(404) 评论(0) 推荐(0)
摘要:Realm is an ACID compliant object database. In this lesson, you will learn how to install Realm, define schemas for your data, perform CRUD operations 阅读全文
posted @ 2016-11-28 21:29 Zhentiw 阅读(475) 评论(0) 推荐(0)
摘要:Now is a great way to deploy your node application, but the generated URLs aren't memorable or easily remembered. With Now's alias command, you can fi 阅读全文
posted @ 2016-10-08 16:43 Zhentiw 阅读(210) 评论(0) 推荐(0)
摘要:Applications require a lot of sensitive information. Database passwords, API keys and secrets used for signing JWTs, just to name a few. If you're dep 阅读全文
posted @ 2016-10-02 22:23 Zhentiw 阅读(139) 评论(0) 推荐(0)
摘要:Now offers a friction-free way to deploy node applications right from the terminal. In this lesson, we'll learn how to use the now CLI to deploy a nod 阅读全文
posted @ 2016-09-24 16:18 Zhentiw 阅读(399) 评论(0) 推荐(0)
摘要:In this lesson we will look at all of the pieces that combine together to create a JWT (j AWT) or JSON Web Token. You will use node to create a JWT, a 阅读全文
posted @ 2016-07-02 04:28 Zhentiw 阅读(523) 评论(0) 推荐(0)
摘要:In this lesson, you will learn the difference between the exports statement and module.exports. Two examples are demonstrated, each accomplishing the 阅读全文
posted @ 2016-06-14 03:43 Zhentiw 阅读(163) 评论(0) 推荐(0)
摘要:Usually we run :  to start an app, then we we might call other script to do something:   Actaully we can use "prestart" to simpify this, because npm w 阅读全文
posted @ 2016-03-14 23:58 Zhentiw
摘要:If you're used to using all the latest ES6+ hotness on the front end via Babel, working in Node.js can feel like a step back. Thankfully, it's easy to 阅读全文
posted @ 2016-03-14 23:51 Zhentiw
摘要:hapi has built-in support for parsing cookies from a request headers, and writing cookies to a response, making state management easy and straight-for 阅读全文
posted @ 2016-03-01 02:58 Zhentiw
摘要:hapi supports request validation out of the box using the joi module. Request path parameters, payloads, and querystring parameters can be validated w 阅读全文
posted @ 2016-03-01 02:53 Zhentiw
摘要:hapi automatically responds with JSON for any error passed to a route's reply()method. But what if your application needs errors rendered in HTML? Thi 阅读全文
posted @ 2016-02-29 03:45 Zhentiw
摘要:Instead of using middlware, hapi provides a number of points during the lifecycle of a request that you can hook-in to provide additional functionalit 阅读全文
posted @ 2016-02-29 03:35 Zhentiw
摘要:hapi makes handling POST and PUT payloads easy by buffering and parsing them automatically without requiring additional modules or middleware. This po 阅读全文
posted @ 2016-02-29 02:56 Zhentiw
摘要:View engines, or template engines, allow you to maintain a clean separation between your presentation layer and the rest of your application. This pos 阅读全文
posted @ 2016-02-29 02:48 Zhentiw
摘要:hapi does not support serving static files out of the box. Instead it relies on a module called Inert. This lesson will cover serving static files usi 阅读全文
posted @ 2016-02-28 21:22 Zhentiw
摘要:When you use reply method: let resp = reply('hello world') It actually return an response object. By using response object, you can modiy the response 阅读全文
posted @ 2016-02-28 21:07 Zhentiw
摘要:hapi's reply interface is one of it's most powerful features. It's smart enough to detect and serialize objects, buffers, promises and even streams. T 阅读全文
posted @ 2016-02-28 03:38 Zhentiw
摘要:Routing is a fundamental aspect of any framework. In this lesson, you'll learn how to use path parameters in hapi's router. We'll also touch on how th 阅读全文
posted @ 2016-02-28 03:27 Zhentiw
摘要:hapi doesn't ship with logging support baked in. Luckily, hapi's rich plugin ecosystem includes everything needed to configure logging for your applic 阅读全文
posted @ 2016-02-28 02:58 Zhentiw

上一页 1 ··· 3 4 5 6 7 8 9 10 下一页