Categories for Nekategorizirano
Error handling with ExpressJS
Error Handling refers to how Express catches and processes errors...
app.get('/', function (req, res, next) {
fs.readFile('/file-does-not-exist', function (err, data) {
})
Simple Todo app with Node.js and Express
In this quick tutorial we will be creating a Todo...
app.listen(8080, function () {
console.log('Running on port 8080!')
});
How to write middleware for Express.Js apps
Middleware functions are functions that have access to the request...
var logger = function (req, res, next) {
console.log('logged')
next()
}
Routing in Node.js with Express.Js
In this post I will try to explain how routing...
app.get('/', function (req, res) {
res.send('hello from me')
})
Top 5 NodeJs Frameworks to Use
Node.js is used to build fast, highly scalable network applications...
app.get('/', function (req, res) {
res.send('Hello World!')
})
Simple REST API with ExpressJS
Express is a minimal and flexible Node.js web application framework...
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
How to apply single quotes around every value using VS code?
I often work with large documents and very often I...
'Nick',
'Ivan'
Remove duplicate elements from list by value with jQuery
jQuery is very useful and easy to learn and it’s...
.list {
list-style:none;
}
Weather app with Vuejs
In this app I’m going to build a weather app...
var vm = new Vue({
// options
})
How to block F12 key with jQuery
In this post, I will show you how to disable...
$(document).on("contextmenu",function(e){
e.preventDefault();
});
Awesome reponsive table
Recently I had one custom CRM project where I had...
.responsive-table tbody td[data-title]:before {
content: none;
}
How to count words in each paragraph
Sometimes you need a number of words for a certain...
var iTotalWords = $(this).text().split(' ').length;