AngularJS a Startup guide

  • listen(port); console.log(‘Server listen on port : ‘ + port);
  • Hierdurch installiert der Node Package Manager alle benötigten Pakete, in unserem Fall body-parser und express.
  • var express = require(‘express’); var bodyParser = require(‘body-parser’) var app = express(); var port = 7000; http = require(‘http’), path = require(‘path’), app.use(express.static(path.join(__dirname, ‘public’))); app.use( bodyParser.json() ); // to support JSON-encoded bodies app.use(bodyParser.urlencoded({ extended: true })); // to support URL-encoded bodies http.createServer(app).

Read the full article, click here.


@ITPGmbH: “#angularJS a startup guide”


Ein kleiner Einblick in AngularJS und NodeJS Mit wenigen Schritten könnt ihr euren eigenen NodeJS Testserver erstellen und Daten an der Oberfläche


AngularJS a Startup guide | | IT-P GmbH

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.