We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
0 parents commit 3cbf298Copy full SHA for 3cbf298
README.md
@@ -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
+var http = require('http');
+http.createServer(function (req, res) {
+ console.log(`Just got a request at ${req.url}!`)
+ res.write('Yo!');
+ res.end();
+}).listen(process.env.PORT || 3000);
package.json
@@ -0,0 +1,13 @@
+{
+ "name": "starter-micro-api",
+ "version": "1.0.0",
+ "description": "",
+ "main": "index.js",
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC",
11
+ "dependencies": {
12
+ }
13
+}
0 commit comments