Building Microservices With Node - Js
Building Microservices With Node - Js
b. Perceptibility
c. Configuration Management
d. Debugging 3
What is Oauth?
We can use Oauth with our Node.js Application using passport
module
correct strategy to login with facebook passport is . 1) Configuring the
session 2) Creating facebook strategy 3) creating route 4)
deserializing session
The passport.authenticate() is middleware with
arguments request,response to authenticate user with facebook or
google
To setup facebook strategy need to import node modules.
Which one not property of facebookStrategy object?
Tags (optional) Option 1 Option 2
The APIs connect directly to your
back-end systems It "layers" APIs on your endpoints
Only A, B ,D Only A, B, C
http.createServer(callback) http.createWebServer(callback)
On Linux the command would be On Windows the command
as follows:$ DEBUG=express:* would be:set DEBUG=express:*
node index.js & node index.js
1 0
1 0
Make a local copy of the
Creating a working directory repository
snapshot file
pull checkout
update checkout
Chanining is a mechanism to
connect output of one stream to
another stream and create a chain Chanining is normally used with
of multiple stream operations. piping operations.
Piping is normally used to get
Piping is a mechanism where we data from one stream and to pass
provide output of one stream as output of that stream to another
the input to another stream. stream.
Database is a physical container A single MongoDB server
for collections typically has single databases
while (var i = 1; i <= 25; i++) for (var i = 1; i <= 25; i++)
{ {
db.testData.insert( { x : i } ) db.testData.insert( { x : i } )
} }
sort() order()
hasMethod() hasNext()
traked untracked
1 0
http://localhost:3000/deleteuser/123 http://localhost:3000/removeuser/123
2 1 0
1 1 0
3 1,2,3,4 3,4,2,1
1 1 0
4 passport passport-facebook
3 ClientId ClientSecret
Option 3 Option 4 Option 5 Option 6
The APIs are inherently more
secure None of the above
export commit
import clone
git remote connecct
<serverUrl> None of the mentioned
app.start() app.listen()
http://localhost:3000/delete/123 http://localhost:3000/user/123
2,3,1,4 4,3,2,1
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy
interme
diate
Interme
diate
Easy
Easy
Easy
Easy
Easy
Easy
Easy
Easy