This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * server.js | |
| * Copyright (C) 2014 ronan <ronan@MacBook-Pro-de-Ronan.local> | |
| * | |
| * Distributed under terms of the MIT license. | |
| */ | |
| // $ npm install connect | |
| // $ npm install serve-static | |
| // $ node simpleServer.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const http = require('http'); | |
| const hostname = '127.0.0.1'; | |
| const port = 3000; | |
| const server = http.createServer((req, res) => { | |
| res.statusCode = 200; | |
| res.setHeader('Content-Type', 'text/html'); | |
| res.end('Hello, from Node js\n'); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.google.firebase.zerotoapp; | |
| public class ChatMessage { | |
| public String name; | |
| public String message; | |
| public ChatMessage() { | |
| } | |
| public ChatMessage(String name, String message) { |