sunvodz / Login-NodeJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Login-NodeJS

  1. $npm install -g express-gererator
  2. $express
  3. edit jade to ejs
3.1. /app.js

14 app.set('view engine','ejs');

3.2. /package.json

"jade": "~1.11.0", to "ejs": "*"

3.3. rename /views/index.jade to /views/index.ejs and edit code

<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
  <meta charset="UTF-8">
  <title>Login</title>
</head>
<body>
  
</body>
</html>
  1. $npm install
  2. http://localhost:3000/ and http://localhost:3000/users

About


Languages

Language:JavaScript 86.3%Language:HTML 10.6%Language:CSS 3.1%