Skip to content

Commit

Permalink
add server.js for legacy web basic sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Alchemist85K committed Jul 24, 2018
1 parent b4b4176 commit d7f7423
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions web-sample/package.json
@@ -0,0 +1,14 @@
{
"name": "Sample-JS-Web-Basic",
"version": "1.0.0",
"description": "SendBird Web Basic Sample",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "SendBird",
"license": "ISC",
"devDependencies": {
"express": "^4.16.3"
}
}
14 changes: 14 additions & 0 deletions web-sample/server.js
@@ -0,0 +1,14 @@
const express = require('express');
const app = express();

const PORT = 9001;

app.use(express.static('build'));
app.use(express.static('./'));

app.get('/', function(req, res) {
res.sendfile('index.html');
});

app.listen(PORT);
console.log(`[SERVER RUNNING] 127.0.0.1:${PORT}`);
Binary file removed web-sample/static/.DS_Store
Binary file not shown.
Binary file removed web-sample/static/img/.DS_Store
Binary file not shown.
Binary file removed web-sample/static/js/.DS_Store
Binary file not shown.

0 comments on commit d7f7423

Please sign in to comment.