'use strict'; var express = require('express'); var app = express(); app.get('/', function(req, res){ res.send('Hello www world.'); }); var server = app.listen(3000); console.log('Servidor Express iniciado na porta %s', server.address().port);
You must install: dot net core 1.1 (https://www.microsoft.com/net/download/core) node 6.9.3 or newer (https://nodejs.org/en/download/) I sugest you use vscode to edit your code. It's fast and free. https://code.visualstudio.com/ In order to check that your environments are ready, please create one hello world console application using c# and another using js.
Build a service that listen an http port (3000). When the browser call this route (http://localhost:3000), the service must send a "Hello www world". In order to accomplish this task, use node.js and express.
Comentários
Postar um comentário