feat(api): add api base
This commit is contained in:
parent
a9fbf96b62
commit
f44b5d74ca
2
apps/api/.gitignore
vendored
Normal file
2
apps/api/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# deps
|
||||||
|
node_modules/
|
11
apps/api/README.md
Normal file
11
apps/api/README.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
To install dependencies:
|
||||||
|
```sh
|
||||||
|
bun install
|
||||||
|
```
|
||||||
|
|
||||||
|
To run:
|
||||||
|
```sh
|
||||||
|
bun run dev
|
||||||
|
```
|
||||||
|
|
||||||
|
open http://localhost:3000
|
12
apps/api/package.json
Normal file
12
apps/api/package.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "@boring.tools/api",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "bun run --hot src/index.ts"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"hono": "^4.6.3"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/bun": "latest"
|
||||||
|
}
|
||||||
|
}
|
9
apps/api/src/index.ts
Normal file
9
apps/api/src/index.ts
Normal 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
apps/api/tsconfig.json
Normal file
7
apps/api/tsconfig.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"strict": true,
|
||||||
|
"jsx": "react-jsx",
|
||||||
|
"jsxImportSource": "hono/jsx"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user