exp 97 titles

log in
ln -s node_modules /usr/lib/
npm
1075
app.set('port', prt); app.listen(app.get('port') )
pm2
1067
res.status(404); res.send(e)
err
1061
pm2 ls --sort id
pm2
1050
passing ejs to scr - <script src> doesnt work; put into ejs
scr
1047
res.status(404); res.render('404', { url: req.url });
err
1042
render after exec
ren
1033
export ${nar[i]}=$xp/${nar[i]}
exp
1018
start scr.sh
pm2
1013
pm2 update
pm2
1012
ejs to script in loop; <script> <%=tar[i]%>="<%=snd[i].snd %>" </script>
ejs
1009
ejs + script : <script>let mv="<%=usr%>"</script>
ejs
1008
post cnv(png) to exp
fs
1000
exp.json() > body-parser
req
987
ws + ses
ws
984
sock as mw
soc
983
express-ws-chat-sample (works!)
ws
977
views: globalViews = path.join(process.cwd(), "views"),
polka
973
form upload
form
967
web-development-with-node-and-express
book
966
cannot serve static; app.use("/pub",srv) -> app.use(srv)
polka
960
<% oar.forEach((i,k)=>{ %><%=i%><%})%>
ejs
949
pm2 start 23 -n myname
pm2
934
npm i -g ejs@2.7.4
ejs
929
cannot find module express -> $NODE_PATH=$(npm root -g)
err
928
<%= snd[i].pat.slice(4,len)%>
ejs
914
syntax error -> use v2.7.4, v3.0.1 breaks
ejs
893
if - unless
hbs
892
{{#each mer}} {{this.sku}} {{/each }}
hbs
891
{{> foo/bar}}
hbs
890
handlebars > express-handlebars
hbs
889
app.use(fav(pat.join(__dirname, '../pub/img',"favicon.ico")));
favicon
873
ajax + ejs
ejs
871
<% for (let i=0;i<5;i++){ %><a class="nav-link" href="/<%=larr[i]%>" style="color:white;"><%=larr[i]%></a><%{%>
ejs
837
ua=req.header("user-agent")
header
730
hea=req.headers
header
729
ua=req.acceptsLanguages("en")
accept
728
req.method = 'GET'; res.redirect('/forum');
req.method
715
var fullUrl = req.protocol + '://' + req.get('host') + req.originalUrl;
req.originalUrl
714
load script loop; <script src="tx/<%= i %>.js"></script>
ejs
701
prevent post twice; res.redirect("cart")
redirect
695
app.use(express.static(path.join(__dirname, 'node_modules')));
path
693
pm2 start 21(id) > pm2 start bin/www
pm2
692
<% var mon=d.getMonth()+1 %>; href="/cal-<%= mon %>"
cal
677
app.use(function(req, res, next) {next(createError(404,err));});
http-errors
674
res.status(500).render('500',{err:err.stack})
err
673
500 err is often caused by bad include
err
672
router.get('*', function(req, res){ res.render('404', {title:title}; });
404
587
app.get('/404', function(req, res, next){ next(); });
err
545
write morgan after express.static
morgan
544
req.params.id-get, req.body.id-post
req
540
req.query - query string param
req
535
req.params.id
req
533
sid = req.sessionID;
session
523
pm2 monit
pm2
498
pm2 start bin/www
pm2
495
using-vue-components-in-your-express-app
vue
490
pm2 show 0
pm2
480
router :id only works with post, not get
route
467
top.forEach(function(ite){ ite=require('./routes/shop/'+ite) app.use('/', ite) })
route
444
top[i]=require('./routes/shop/'+top[i]); app.use('/', top[i])
route
443
exp w ts
ts
427
understanding-express
exp
408
Error: Failed to find request token in session
passport
382
express実践入門
exp
377
coo=cookie.parse("email="+email+";pss="+pss)
cookie
370
program.view = 'ejs'
ejs
365
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
nodemon
358
app.use(cookieSession({keys: [/* secret keys */], maxAge: 24 * 60 * 60 * 1000 // 24 hours }))
cookie
349
best-practice-security
cookie
348
router.post('/item:id', [pcb,rcb]);
routing
346
express --view=hbs myproj
hbs
318
express --ejs
ejs
222
express-swig
swig
209
expressで簡単お問い合わせフォーム
nodemailer
208
php to ejs
ejs
207
forever start ./bin/www
forever
206
ejs-to-template-your-node
ejs
203
include pug - x, jade ()
jade
191
jade ban1.jade -pretty
jade
187
<%= Object.values(posts[0])[2] %>
ejs
186
ejs temp
ejs
185
use db.all() not db.each
sqlite3
184
arr1.push(row.title);
sqlite
183
routes/index.js - exp + sqlite3
sqlite
181
Object.prototype.hasOwnProperty.call(obj,i)
ejs
180
pass value to ejs view
ejs
179
use ejs
ejs
178
bin/www ; var port = normalizePort(process.env.PORT || '3000');
exp
177
node app.js &
route
174
upstream lin1 {server localhost:3010;}
nginx
173
script(src='/javascripts/jquery.js')
jade
20
a(href=item.link)=item.link
jade
18
embedd facebook usr img
jade
12
req.cookies.usr
cookie
10
facebook login
jade
7
form select
jade
6