From 370f43f1ff7e1ff3f47825fc24ba38204e75a5bc Mon Sep 17 00:00:00 2001 From: nzambello Date: Sat, 9 Mar 2024 17:01:35 +0200 Subject: [PATCH] initial commit --- .gitignore | 1 + README.md | 11 +++++++++++ bun.lockb | Bin 0 -> 3027 bytes package.json | 11 +++++++++++ src/index.ts | 9 +++++++++ tsconfig.json | 7 +++++++ 6 files changed, 39 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100755 bun.lockb create mode 100644 package.json create mode 100644 src/index.ts create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/README.md b/README.md new file mode 100644 index 0000000..6dd13e7 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +To install dependencies: +```sh +bun install +``` + +To run: +```sh +bun run dev +``` + +open http://localhost:3000 diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000000000000000000000000000000000000..e0842e4b6b77fa4f3e0ddf3aec54fa9488207e9d GIT binary patch literal 3027 zcmY#Z)GsYA(of3F(@)JSQ%EY!;{sycoc!eMw9K4T-L(9o+{6;yG6OCq1_lOU+j*j@ zLOHp@Vp{^Af0aITcKz4FOG5{}~2C9MScLI9c5vU(zw-gYAXkr1#4463}8We`iP%)4>AU+$EMowtt z>HEk34`d*f0V4y%Tx6qJHmwyDVc4!@KYNl`-giefM$W6sfr^Vna{BrmgC8WvY&-Nm zaMI~s&%T3MoG)w)rTlKB=Uw3AiHS??JiO=I&Hw9xZiJZ&3m=fPS%jC0r9G}Vm0)<* zAuOb^S!V9dYP}O54;%B&pTi!I)jC_PJi0&sMuW3en9=ST*OE4Gdhp%-d8A!KO1iy( ze$YY>By&OG3 z)cTD5!>?r}tIbzzRD2dN)$go|{@#`uk(I15`W-c!CMkY@xZhhe?N!whm_b97Moz;+ z)C=@*_6BHKbOcIs*%TKg>t*H@mn7!o=)r1Sy^x~RR67MD1BK$us?_{69R(AG#GK6Z zy!Py?(U=U~c7EJ-acL9`5D zH9Zq!oQa-+o+SeVtc?Jx^O+b8ff7bQnJqwDL9GQ??a#zmXJnvfXsBllYfr%12S6DM zJyShH11x&9z^-RtfVDYbZ3v(qQ#~UyJrjlws1IQ@YLphI=9Z-v>A6;vq!#5R<^-1% zW#*;ZDHtLG!2%u#JD?_6Lt9Y5I0S~5A|!pIV22GsPt{FGEEv%DCOad0(2eNf^?SVrDP^& Y67&eNGN3WYTwQR?gAIeGjzLEO0I|UrWB>pF literal 0 HcmV?d00001 diff --git a/package.json b/package.json new file mode 100644 index 0000000..590700c --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "scripts": { + "dev": "bun run --hot src/index.ts" + }, + "dependencies": { + "hono": "^4.0.9" + }, + "devDependencies": { + "@types/bun": "latest" + } +} diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..3191383 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,9 @@ +import { Hono } from 'hono' + +const app = new Hono() + +app.get('/', (c) => { + return c.text('Hello Hono!') +}) + +export default app diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..c442b33 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "strict": true, + "jsx": "react-jsx", + "jsxImportSource": "hono/jsx" + } +} \ No newline at end of file