Browse Source

Removed examples, that's what the site is for

master
Leo Lamprecht 8 years ago
parent
commit
b612fbc02b
  1. 5
      examples/nodejs/1-basic-server/server.js
  2. 9
      examples/nodejs/2-microservice/package.json
  3. 8
      examples/nodejs/2-microservice/server.js
  4. 17
      examples/static/index.html
  5. 21
      examples/static/style.css

5
examples/nodejs/1-basic-server/server.js

@ -1,5 +0,0 @@
require('http')
.createServer((req, res) => {
res.end('Hello world!')
})
.listen(process.env.PORT)

9
examples/nodejs/2-microservice/package.json

@ -1,9 +0,0 @@
{
"name": "micro-example",
"dependencies": {
"micro": "latest"
},
"scripts": {
"start": "micro server"
}
}

8
examples/nodejs/2-microservice/server.js

@ -1,8 +0,0 @@
module.exports = () => {
return {
project: {
type: 'microservice',
poweredBy: '▲'
}
}
}

17
examples/static/index.html

@ -1,17 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>My first now deployment</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div>
<p style="font: 50px Helvetica">
</p>
</div>
</body>
</html>

21
examples/static/style.css

@ -1,21 +0,0 @@
body {
background: #000;
color: #fff;
}
div {
display: flex;
align-items: center;
height: 100%;
width: 100%;
position: absolute;
}
p {
font-size: 200px;
margin: 0;
padding: 0;
width: 100%;
text-align: center;
}
Loading…
Cancel
Save