feat: Create initial project

This commit is contained in:
Myzel394 2024-11-05 17:01:30 +01:00
commit b79a7293af
No known key found for this signature in database
GPG Key ID: ED20A1D1D423AF3F
6 changed files with 41 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# deps
node_modules/

11
README.md Normal file
View File

@ -0,0 +1,11 @@
To install dependencies:
```sh
bun install
```
To run:
```sh
bun run dev
```
open http://localhost:3000

BIN
bun.lockb Executable file

Binary file not shown.

12
package.json Normal file
View File

@ -0,0 +1,12 @@
{
"name": "amiopen",
"scripts": {
"dev": "bun run --hot src/index.ts"
},
"dependencies": {
"hono": "^4.6.9"
},
"devDependencies": {
"@types/bun": "latest"
}
}

9
src/index.ts Normal file
View File

@ -0,0 +1,9 @@
import { Hono } from 'hono'
const app = new Hono()
app.get('/', (c) => {
return c.text('Hello Hono!')
})
export default app

7
tsconfig.json Normal file
View File

@ -0,0 +1,7 @@
{
"compilerOptions": {
"strict": true,
"jsx": "react-jsx",
"jsxImportSource": "hono/jsx"
}
}