Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
4 changes: 4 additions & 0 deletions examples/h3xt-usage/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Example of using `h3xt` http framework

This is just a scratch pad for what an end user application built
ontop of the new framework could look like.
Copy link

@antsmartian antsmartian Oct 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Actually we can add the npm version requirement here:

This requires npm@7 workspaces. $ npm i -g npm@7 then run npm i in the root

8 changes: 8 additions & 0 deletions examples/h3xt-usage/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';
require('h3xt')()
.get('/', async () => {
return {
hello: 'world'
};
})
.listen(0);
12 changes: 12 additions & 0 deletions examples/h3xt-usage/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "h3xt-usage",
"version": "1.0.0",
"description": "This is just a scratch pad for what an end user application built ontop of the new framework could look like.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
Loading