Skip to content

Commit 3cbf298

Browse files
committed
first commit
0 parents  commit 3cbf298

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# starter-micro-api
2+
3+
This is the simplest possible nodejs api using the base http library that responds to any request with:
4+
```
5+
Yo!
6+
```

index.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
var http = require('http');
2+
http.createServer(function (req, res) {
3+
console.log(`Just got a request at ${req.url}!`)
4+
res.write('Yo!');
5+
res.end();
6+
}).listen(process.env.PORT || 3000);

package.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "starter-micro-api",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"author": "",
10+
"license": "ISC",
11+
"dependencies": {
12+
}
13+
}

0 commit comments

Comments
 (0)