Public
HTTP (deprecated)
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Readme

📄 hello, resume

Creating, customizing, and hosting resumes can get complicated and time-consuming. This project aims to simplify that process and maybe make it a little more enjoyable.

Follow the steps in your resumeConfig to get started.

Happy job hunting! 💼✨

Thanks to @nbbaier for the great feedback and resumeValidator!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/** @jsxImportSource https://esm.sh/react */
import { resumeConfig } from "https://esm.town/v/ajax/resumeConfig";
import { helloResume } from "https://esm.town/v/iamseeley/helloResume";
import { renderResume } from "https://esm.town/v/iamseeley/renderResume";
import { resumeSetup } from "https://esm.town/v/iamseeley/resumeSetup";
import { render } from "npm:@jsonresume/theme-stackoverflow";
// import { render } from "npm:@jsonresume/jsonresume-theme-professional@1.0.16";
export default async function resumeHandler(req: Request): Promise<Response> {
if (req.method === "GET") {
try {
const config = await resumeSetup(resumeConfig);
const resumeHTML = render(config.resumeDetails);
return new Response(resumeHTML, { headers: { "Content-Type": "text/html" } });
} catch (error) {
console.error("Error in handler:", error);
return new Response(`Error: ${error.message}`, { status: 400 });
}
} else {
return new Response("Method Not Allowed", { status: 405 });
}
}
ajax-resumehandler.web.val.run
June 28, 2024