Browse Source

HTTP server

master
Demo User 2 years ago
commit
ceba08e52c
3 changed files with 19 additions and 0 deletions
  1. +0
    -0
      Readme.md
  2. +13
    -0
      index.js
  3. +6
    -0
      package.json

+ 0
- 0
Readme.md View File


+ 13
- 0
index.js View File

@ -0,0 +1,13 @@
const express = require('express');
const app = express();
const http = require("http");
const server = http.createServer(app);
app.get('/', (req, res) => {
res.send('<h1>Hello new user!!</h1>');
});
server.listen(3030, () => {
console.log('listening on beaglebone.local:3030');
});

+ 6
- 0
package.json View File

@ -0,0 +1,6 @@
{
"name": "socket-chat-example",
"version": "0.0.1",
"description": "my first socket.io app",
"dependencies": {}
}

Loading…
Cancel
Save