Home / All Articles

Blog Archives

how to pass multiple collections query in single route in node js ?

var with_title = config.with_title; var top_destinations_in_the_us_result; var people_search_for_result; var recommended_estinations_result; var us_beach_vacation_destinations_result; var us_solo_vacation_destinations_result; var us_family_vacation_destinations_result; //@ Tripinn index/home page. exports.home = function(req, res) { async.parallel([ //Load user Data function(callback) { var top_destinations = 'Top Destinations in The US'; trpn_city_pages_category_relation.find({selected_categories:top_destinations.trim() },function(err, top_destinations_in_the_us) { if (err) return callback(err); top_destinations_in_the_us_result = top_destinations_in_the_us; …

Read More »

How to Get Query Strings and Parameters in node js

Introduction We’ll be going over how to extract information from a URL in node.js. Specifically, how do we extract information from a query string and URL path parameters? In this article, I assume you have some experience with Node.js and creating Express.js servers (or at least simple ones) then you …

Read More »

how to upload image and file in node js

When a file is successfully uploaded to the server, it is placed on a temporary folder. The path to this directory can be found in the “files” object, passed as the third argument in the parse() method’s callback function. To move the file to the folder of your choice, use …

Read More »