Search results for 2014 04 07 the basics of express routes

Express.js Fundamentals

by Azat Mardan

simple Express app, below is the full code of expressfun/app.js (Note: going forward, as of v3.4.3, bodyParser is deprecated): var express = require(‘express‘); var routes = require(‘./routes‘); var user =…

The Basics of Express Routes

by Azat Mardan

concepts in Express is routes. In this article I will share the basics of understanding routes in Express. If you are just starting with Express and nee help getting it…

Convention-based, Modular MVC with Shared Rendering in Node.js

by Nicolas Bevacqua

…able to mix my Taunus view routes with any other routes I have, such as API routes or error handling middleware. var taunus = require(‘taunus’); var routes = require(‘./routes‘); var…

MEAN Stack – A Quick Start Guide

by Matt Carella

these steps: Navigate into a directory: myfolder Install Express by opening a new command prompt and typing: npm install -g express Create a new Express app typing the command: express

2014 – What Web Developers Will Need to Know

by Brian Rinaldi

…help shed some light on what web developers might need to know for 2014. Specifically, I asked, “Looking into 2014, what do you think will have the most impact on…

Intro to Express.js Parameters, Error Handling and Other Middleware

by Azat Mardan

abstract request handlers into external modules based on the functionality: var stories = require.(‘./routes/stories’); var elements = require.(‘./routes/elements’); var users = require.(‘./routes/users’); … app.get(‘/stories/,stories.find); app.get(‘/stories/:storyId/elements/:elementId’, elements.find); app.put(‘/users/:userId’,users.update); routes/stories.js: module.exports.find =…

Convention Based Routing In JavaScript Apps

by Burke Holland

…class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute(“{resource}.axd/{*pathInfo}”); routes.MapRoute( name: “Default”, url: “{controller}/{action}/{id}”, defaults: new { controller = “Home”, action = “Index”, id = UrlParameter.Optional } ); }…

Building Multiplayer Games with Node.js and Socket.IO

by Eric Terpstra

…a custom Node Module which will be discussed later. Express – On its own, Node.js does not provide many of the necessary requirements for creating a web application. Adding Express

Building a Frontend WordPress theme

mm by Trevan Hetzel

…contain initialize and routes methods. var ApplicationRouter = Backbone.Router.extend({ initialize: function (el) { }, routes: { ”: function () {}, ‘*else’: function () {} } }); // Kick off router…

Easy API Scaffolding with Simple-API and Node.js

by Joseph Wegner

…for now it is not used for anything (but are accessable from actions, if you want them). Routes I like to start my controllers by writing the routes. This allows…