aboutsummaryrefslogtreecommitdiff
path: root/examples/kingworld/src/index.ts
diff options
context:
space:
mode:
authorGravatar SaltyAom <aomkirby123@gmail.com> 2022-07-15 18:54:18 +0700
committerGravatar GitHub <noreply@github.com> 2022-07-15 13:54:18 +0200
commit61de6032afabdb359ddc57e0a5d8e7a825a851f8 (patch)
tree722f778f7e76edeb4ef7171f86de9ea3d39bd172 /examples/kingworld/src/index.ts
parentb901f55164c9f60dc9da5d13ad13f7ff9c1d2bac (diff)
downloadbun-61de6032afabdb359ddc57e0a5d8e7a825a851f8.tar.gz
bun-61de6032afabdb359ddc57e0a5d8e7a825a851f8.tar.zst
bun-61de6032afabdb359ddc57e0a5d8e7a825a851f8.zip
template(kingworld): Add kingworld template (#708)
* feat(examples): add kingworld * fix(examples/kingworld): add .gitignore * fix(template/kingworld): rename .gitignore to gitignore * fix(template/kingworld): update to request change * fix(template/kingworld): update 'getting start' to 'Getting Started'
Diffstat (limited to 'examples/kingworld/src/index.ts')
-rw-r--r--examples/kingworld/src/index.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/kingworld/src/index.ts b/examples/kingworld/src/index.ts
new file mode 100644
index 000000000..68fd8f1a8
--- /dev/null
+++ b/examples/kingworld/src/index.ts
@@ -0,0 +1,7 @@
+import KingWorld from 'kingworld'
+
+new KingWorld()
+ .get("/", () => "Hello KingWorld")
+ .listen(3000)
+
+console.log('🦊 KINGWORLD is running at :3000')