-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
29 lines (27 loc) · 911 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const express = require("express");
const app = express();
const port = process.env.APP_PORT || 3000;
app.get("/", (req, res) => {
res.send(`
<html>
<head>
<link rel="stylesheet" href="https://devspace.cloud/quickstart.css">
</head>
<body>
<img src="https://devspace.cloud/img/congrats.gif" />
<h1>You deployed this project with DevSpace!</h1>
<div>
<h2>Now it's time to code:</h2>
<ol>
<li>Edit this text in <code>index.js</code> and save the file</li>
<li>Check the logs to see how DevSpace restarts your container</li>
<li>Reload browser to see the changes</li>
</ol>
</div>
</body>
</html>
`);
});
app.listen(port, () =>
console.log("Example app listening on http://localhost:" + port)
);