Compare commits
2
Commits
762a473d09
..
v1.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33172b0968 | ||
|
|
22a95e020f |
No files matched your search
@@ -32,3 +32,5 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
|
|||||||
|
|
||||||
# Finder (MacOS) folder config
|
# Finder (MacOS) folder config
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
build/
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
FROM debian
|
||||||
|
COPY ./release /app
|
||||||
|
EXPOSE 8080
|
||||||
|
CMD ["/app"]
|
||||||
@@ -14,3 +14,18 @@ To run:
|
|||||||
```bash
|
```bash
|
||||||
bun run dev
|
bun run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To build:
|
||||||
|
``` bash
|
||||||
|
# MacOS
|
||||||
|
bun run build-macos
|
||||||
|
# Linux(x86)
|
||||||
|
bun run build-linux-x86
|
||||||
|
# Linux(arm64)
|
||||||
|
bun run build-linux-arm64
|
||||||
|
```
|
||||||
|
|
||||||
|
To clean:
|
||||||
|
```bash
|
||||||
|
bun run clean
|
||||||
|
```
|
||||||
@@ -4,13 +4,11 @@ import { validator } from "hono/validator";
|
|||||||
import { postUser } from "./service/postUser";
|
import { postUser } from "./service/postUser";
|
||||||
import { isEmpty } from "./utils/is_empty";
|
import { isEmpty } from "./utils/is_empty";
|
||||||
import { getUser } from "./service/getUser";
|
import { getUser } from "./service/getUser";
|
||||||
import { cors } from "hono/cors";
|
|
||||||
import { bodyLimit } from "hono/body-limit";
|
import { bodyLimit } from "hono/body-limit";
|
||||||
import { getRandom } from "./service/getRandom";
|
import { getRandom } from "./service/getRandom";
|
||||||
|
|
||||||
const tmpApp: Hono = new Hono()
|
const tmpApp: Hono = new Hono()
|
||||||
export const app = tmpApp.basePath("/test/")
|
export const app = tmpApp.basePath("/test/")
|
||||||
app.use("/test/*", cors())
|
|
||||||
|
|
||||||
// routers
|
// routers
|
||||||
app.get("/user", (c) => {
|
app.get("/user", (c) => {
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
import type { Context, ContextVariableMap } from "hono"
|
|
||||||
import { updateExpressionWithTypeArguments } from "typescript/unstable/ast/factory"
|
|
||||||
import { ApiResponse } from "../modules/api_response"
|
|
||||||
|
|
||||||
enum Type {
|
enum Type {
|
||||||
lcLetter = "lcLetter",
|
lcLetter = "lcLetter",
|
||||||
ucLetter = "ucLetter",
|
ucLetter = "ucLetter",
|
||||||
|
|||||||
Reference in new issue
Block a user