[{"data":1,"prerenderedAt":315},["ShallowReactive",2],{"content-query-mJsJtjPs8E":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"body":9,"_type":309,"_id":310,"_source":311,"_file":312,"_stem":313,"_extension":314},"\u002Fguides\u002Finstall","guides",false,"","ติดตั้งและสร้างโปรเจกต์",{"type":10,"children":11,"toc":303},"root",[12,19,25,47,52,85,91,99,104,206,211,260,265,288,297],{"type":13,"tag":14,"props":15,"children":16},"element","h1",{"id":8},[17],{"type":18,"value":8},"text",{"type":13,"tag":20,"props":21,"children":23},"h2",{"id":22},"สิ่งที่ต้องมี",[24],{"type":18,"value":22},{"type":13,"tag":26,"props":27,"children":28},"ul",{},[29,42],{"type":13,"tag":30,"props":31,"children":32},"li",{},[33,35],{"type":18,"value":34},"Node.js 20 ขึ้นไป ตรวจด้วย ",{"type":13,"tag":36,"props":37,"children":39},"code",{"className":38},[],[40],{"type":18,"value":41},"node -v",{"type":13,"tag":30,"props":43,"children":44},{},[45],{"type":18,"value":46},"บัญชี Cloudflare สำหรับ deploy",{"type":13,"tag":20,"props":48,"children":50},{"id":49},"สร้างโปรเจกต์",[51],{"type":18,"value":49},{"type":13,"tag":53,"props":54,"children":58},"pre",{"code":55,"language":56,"meta":7,"className":57,"style":7},"npx create-oneorigin-app@latest my-site\n","sh","language-sh shiki shiki-themes github-dark",[59],{"type":13,"tag":36,"props":60,"children":61},{"__ignoreMap":7},[62],{"type":13,"tag":63,"props":64,"children":67},"span",{"class":65,"line":66},"line",1,[68,74,80],{"type":13,"tag":63,"props":69,"children":71},{"style":70},"--shiki-default:#B392F0",[72],{"type":18,"value":73},"npx",{"type":13,"tag":63,"props":75,"children":77},{"style":76},"--shiki-default:#9ECBFF",[78],{"type":18,"value":79}," create-oneorigin-app@latest",{"type":13,"tag":63,"props":81,"children":82},{"style":76},[83],{"type":18,"value":84}," my-site\n",{"type":13,"tag":86,"props":87,"children":88},"p",{},[89],{"type":18,"value":90},"ได้โครงสร้าง",{"type":13,"tag":53,"props":92,"children":94},{"code":93},"my-site\u002F\n  wrangler.toml        Static Assets + SPA fallback\n  package.json         scripts: dev, check, deploy\n  public\u002Findex.html    หน้าแรก\n  public\u002Fassets\u002F       ชุดไฟล์หน้าเว็บ\n",[95],{"type":13,"tag":36,"props":96,"children":97},{"__ignoreMap":7},[98],{"type":18,"value":93},{"type":13,"tag":20,"props":100,"children":102},{"id":101},"เทมเพลตอื่น",[103],{"type":18,"value":101},{"type":13,"tag":53,"props":105,"children":107},{"code":106,"language":56,"meta":7,"className":57,"style":7},"npx create-oneorigin-app@latest api --template worker\nnpx create-oneorigin-app@latest agent --template agent --provider openai\nnpx create-oneorigin-app@latest agent --template agent --provider base44\n",[108],{"type":13,"tag":36,"props":109,"children":110},{"__ignoreMap":7},[111,138,173],{"type":13,"tag":63,"props":112,"children":113},{"class":65,"line":66},[114,118,122,127,133],{"type":13,"tag":63,"props":115,"children":116},{"style":70},[117],{"type":18,"value":73},{"type":13,"tag":63,"props":119,"children":120},{"style":76},[121],{"type":18,"value":79},{"type":13,"tag":63,"props":123,"children":124},{"style":76},[125],{"type":18,"value":126}," api",{"type":13,"tag":63,"props":128,"children":130},{"style":129},"--shiki-default:#79B8FF",[131],{"type":18,"value":132}," --template",{"type":13,"tag":63,"props":134,"children":135},{"style":76},[136],{"type":18,"value":137}," worker\n",{"type":13,"tag":63,"props":139,"children":141},{"class":65,"line":140},2,[142,146,150,155,159,163,168],{"type":13,"tag":63,"props":143,"children":144},{"style":70},[145],{"type":18,"value":73},{"type":13,"tag":63,"props":147,"children":148},{"style":76},[149],{"type":18,"value":79},{"type":13,"tag":63,"props":151,"children":152},{"style":76},[153],{"type":18,"value":154}," agent",{"type":13,"tag":63,"props":156,"children":157},{"style":129},[158],{"type":18,"value":132},{"type":13,"tag":63,"props":160,"children":161},{"style":76},[162],{"type":18,"value":154},{"type":13,"tag":63,"props":164,"children":165},{"style":129},[166],{"type":18,"value":167}," --provider",{"type":13,"tag":63,"props":169,"children":170},{"style":76},[171],{"type":18,"value":172}," openai\n",{"type":13,"tag":63,"props":174,"children":176},{"class":65,"line":175},3,[177,181,185,189,193,197,201],{"type":13,"tag":63,"props":178,"children":179},{"style":70},[180],{"type":18,"value":73},{"type":13,"tag":63,"props":182,"children":183},{"style":76},[184],{"type":18,"value":79},{"type":13,"tag":63,"props":186,"children":187},{"style":76},[188],{"type":18,"value":154},{"type":13,"tag":63,"props":190,"children":191},{"style":129},[192],{"type":18,"value":132},{"type":13,"tag":63,"props":194,"children":195},{"style":76},[196],{"type":18,"value":154},{"type":13,"tag":63,"props":198,"children":199},{"style":129},[200],{"type":18,"value":167},{"type":13,"tag":63,"props":202,"children":203},{"style":76},[204],{"type":18,"value":205}," base44\n",{"type":13,"tag":20,"props":207,"children":209},{"id":208},"รันในเครื่อง",[210],{"type":18,"value":208},{"type":13,"tag":53,"props":212,"children":214},{"code":213,"language":56,"meta":7,"className":57,"style":7},"cd my-site\nnpm install\nnpm run dev\n",[215],{"type":13,"tag":36,"props":216,"children":217},{"__ignoreMap":7},[218,230,243],{"type":13,"tag":63,"props":219,"children":220},{"class":65,"line":66},[221,226],{"type":13,"tag":63,"props":222,"children":223},{"style":129},[224],{"type":18,"value":225},"cd",{"type":13,"tag":63,"props":227,"children":228},{"style":76},[229],{"type":18,"value":84},{"type":13,"tag":63,"props":231,"children":232},{"class":65,"line":140},[233,238],{"type":13,"tag":63,"props":234,"children":235},{"style":70},[236],{"type":18,"value":237},"npm",{"type":13,"tag":63,"props":239,"children":240},{"style":76},[241],{"type":18,"value":242}," install\n",{"type":13,"tag":63,"props":244,"children":245},{"class":65,"line":175},[246,250,255],{"type":13,"tag":63,"props":247,"children":248},{"style":70},[249],{"type":18,"value":237},{"type":13,"tag":63,"props":251,"children":252},{"style":76},[253],{"type":18,"value":254}," run",{"type":13,"tag":63,"props":256,"children":257},{"style":76},[258],{"type":18,"value":259}," dev\n",{"type":13,"tag":86,"props":261,"children":262},{},[263],{"type":18,"value":264},"ตรวจก่อน deploy โดยไม่กินโควตา",{"type":13,"tag":53,"props":266,"children":268},{"code":267,"language":56,"meta":7,"className":57,"style":7},"npm run check\n",[269],{"type":13,"tag":36,"props":270,"children":271},{"__ignoreMap":7},[272],{"type":13,"tag":63,"props":273,"children":274},{"class":65,"line":66},[275,279,283],{"type":13,"tag":63,"props":276,"children":277},{"style":70},[278],{"type":18,"value":237},{"type":13,"tag":63,"props":280,"children":281},{"style":76},[282],{"type":18,"value":254},{"type":13,"tag":63,"props":284,"children":285},{"style":76},[286],{"type":18,"value":287}," check\n",{"type":13,"tag":289,"props":290,"children":291},"blockquote",{},[292],{"type":13,"tag":86,"props":293,"children":294},{},[295],{"type":18,"value":296},"ชื่อโปรเจกต์ใช้ได้เฉพาะตัวพิมพ์เล็ก ตัวเลข และขีดกลาง ถ้าโฟลเดอร์ชื่อซ้ำ CLI จะไม่เขียนทับ",{"type":13,"tag":298,"props":299,"children":300},"style",{},[301],{"type":18,"value":302},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":140,"depth":140,"links":304},[305,306,307,308],{"id":22,"depth":140,"text":22},{"id":49,"depth":140,"text":49},{"id":101,"depth":140,"text":101},{"id":208,"depth":140,"text":208},"markdown","content:guides:install.md","content","guides\u002Finstall.md","guides\u002Finstall","md",1793258342475]