Learning to use Rich HTML5 Javascript API for enhancing web apps - i-visionblog.com
A Pen by s.shivasurya on CodePen.
var http = require("http"); | |
var express = require("express"); | |
var app = express(); | |
var request = require('request'); | |
var bodyParser = require('body-parser'); | |
var morgan = require('morgan') | |
var fs = require('fs'); | |
var path = require('path'); | |
//to log every request for debugging |
/*My name is Shivasurya s and i had lot of trouble | |
while installing Android SDK on Gentoo Linux Machine. | |
Somehow i have configured, built my first gradle based project | |
Credits for Ubuntu : https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7 | |
i found this above gist partially helpful while doing it on Gentoo. | |
*/ | |
###install JAVA 6/7/8 | |
http://www.dowdandassociates.com/blog/content/howto-install-java-gentoo/ |
Learning to use Rich HTML5 Javascript API for enhancing web apps - i-visionblog.com
A Pen by s.shivasurya on CodePen.
var nodemailer = require("nodemailer"); | |
var smtpTransport = nodemailer.createTransport("SMTP",{ | |
service: "Gmail", | |
auth: { | |
user: "username@gmail.com", | |
pass: "########################" | |
} | |
}); |
var email = require('mailer'); | |
email.send({ | |
host : "smtp.gmail.com", | |
port : "465", | |
ssl : true, | |
domain : "i-visionblog.com", | |
to : "someone@someone.com", | |
from : "author@ivb.com", | |
subject : "Mailer library Mail node.js", |
var http = require("http"); | |
var express = require("express"); | |
var bodyParser = require('body-parser'); | |
var app = express(); | |
var mongoose = require("mongoose"); | |
var remote_db_url = require('./database.js'); | |
mongoose.connect(remote_db_url.url); | |
var movie = require('./model.js'); | |
app.use(bodyParser()); |
var mongoose = require('mongoose'); | |
var movie_api = mongoose.Schema({ | |
movie : { | |
name : String, | |
year : String, | |
director : String, | |
genre : String, |
var mongoose = require('mongoose'); | |
var userSchema = mongoose.Schema({ | |
recent : { | |
film : String, | |
director : String, | |
musicdir :String, | |
rating :String, | |
genre :String, | |
thumbnail : String, | |
}, |
// server.js | |
// set up ====================================================================== | |
// get all the tools we need | |
var path = require('path'); | |
var express = require('express'); | |
var app = express(); | |
var port = process.env.OPENSHIFT_NODEJS_PORT || 8080 | |
, ip = process.env.OPENSHIFT_NODEJS_IP || "127.0.0.1"; | |
var mongoose = require('mongoose'); |
$(function() { | |
var showInfo = function(message) { | |
$('div.progress').hide(); | |
$('strong.message').text(message); | |
$('div.alert').show(); | |
}; | |
$('input[type="submit"]').on('click', function(evt) { | |
evt.preventDefault(); |