This example demonstrates how to use Express 4.x and Passport to authenticate users using a username and password with form-based authentication. Use this example as a starting point for your own web applications.
Instructions
To install this example on your computer, clone the repository and install dependencies.
$ git clone git@github.com:passport/express-4.x-local-example.git
$ cd express-4.x-local-example
$ npm install
Start the server.
$ node server.js
Open a web browser and navigate to http://localhost:3000/
to see the example in action. Log in using username jack
and password secret
.
hebe diablo静态文件node服务
新增pooh单页应用的node服务
- pooh 运行npm run build 把dist下的pooh文件夹复制到views下
- 启动应用访问http://localhost:3002/v2/d/home