From 3cbf29874dc1d770b2efe96f4d389a65aad6ed03 Mon Sep 17 00:00:00 2001 From: Mike Date: Fri, 10 Dec 2021 08:10:43 -0500 Subject: [PATCH 1/3] first commit --- README.md | 6 ++++++ index.js | 6 ++++++ package.json | 13 +++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 README.md create mode 100644 index.js create mode 100644 package.json diff --git a/README.md b/README.md new file mode 100644 index 0000000000..e084f0d0db --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# starter-micro-api + +This is the simplest possible nodejs api using the base http library that responds to any request with: +``` +Yo! +``` diff --git a/index.js b/index.js new file mode 100644 index 0000000000..5f35242ee8 --- /dev/null +++ b/index.js @@ -0,0 +1,6 @@ +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); \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000000..aee3f820f7 --- /dev/null +++ b/package.json @@ -0,0 +1,13 @@ +{ + "name": "starter-micro-api", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "dependencies": { + } +} From 0e63791e04afa9f0703473d0cdf3ee04c2fbb32c Mon Sep 17 00:00:00 2001 From: Kam Date: Fri, 30 Sep 2022 11:33:56 -0400 Subject: [PATCH 2/3] Updated description --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index aee3f820f7..e9e35c2aaa 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "starter-micro-api", "version": "1.0.0", - "description": "", + "description": "Cyclic.sh micro api starter", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" From 46d63960ac12b51c3a62f80403a73e32b6183a05 Mon Sep 17 00:00:00 2001 From: Mike Korostelev Date: Wed, 14 Dec 2022 12:34:49 -0500 Subject: [PATCH 3/3] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index e084f0d0db..c0acdfe66d 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,9 @@ This is the simplest possible nodejs api using the base http library that respon ``` Yo! ``` + +## Deploy in under 10 seconds + +[![Deploy to Cyclic](https://deploy.cyclic.app/button.svg)](https://deploy.cyclic.app/) +- Sets up instant continuous deployment on `git push` +- Realtime backend logs and API request monitoring