Spaces:
Running
Running
Create index.js
Browse files
index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import express from 'express';
|
| 2 |
+
|
| 3 |
+
const app = express();
|
| 4 |
+
const port = 7860;
|
| 5 |
+
|
| 6 |
+
app.get('/', (req, res) => {
|
| 7 |
+
res.send('Hello World!');
|
| 8 |
+
});
|
| 9 |
+
|
| 10 |
+
app.listen(port, () => {
|
| 11 |
+
console.log(`Example app listening on port ${port}`);
|
| 12 |
+
});
|