abc
abc copied to clipboard
how to deploy in DENO DEPLOY ?
how to deploy this code to deno deploy
import { Application } from "https://deno.land/x/abc/mod.ts";
const app = new Application();
console.log("http://localhost:8080/");
app
.get("/hello", (c) => {
return "Hello, Abc!";
})
.post("/add",async(c)=>{
let {name} = await c.body
console.log(c.body)
return "namanya = " + name
})
.start({ port: 8080 });
Sorry, it's not supported yet, but I've been trying to find a path that fits better with Deno Deploy. I don't think it's a good idea for Abc (or any other framework of its type) to work with Deno Deploy (or any other deployment platform). So I will split a section of Abc into a separate file to support Deno Deploy. I believe this work will be completed soon (within two months)