{"id":2156,"date":"2020-09-03T20:34:38","date_gmt":"2020-09-03T12:34:38","guid":{"rendered":"https:\/\/sforest.in\/?p=2156"},"modified":"2020-09-03T20:34:38","modified_gmt":"2020-09-03T12:34:38","slug":"first-try-of-node-js","status":"publish","type":"post","link":"https:\/\/sforest.in\/ja\/first-try-of-node-js\/","title":{"rendered":"\u5e74\u8f7b\u4eba\u7684\u7b2c\u4e00\u6b21Node.js"},"content":{"rendered":"<p>\u770b\u770b\u524d\u4e00\u7bc7\u535a\u6587\u2026\u2026 <em>\u304a\u308f\u304b\u308a\u3044\u305f\u3060\u3051\u305f<\/em>\u3060\u308d<em>\u3046\u304b<\/em>\u3002<s>\uff08\u522b\u8bf4\u9898\u89e3\u4e86\u8fde\u9898\u90fd\u6ca1\u8865\u51e0\u9053\uff09<\/s><\/p>\n\n\n\n<p>\u55e8\uff0c\u5148\u4e0d\u63d0\u8fd9\u4e2a\u4e86\u3002\u5728\u7fa4\u91cc\u5076\u7136\u770b\u89c1\u4e00\u4e2a<a href=\"https:\/\/arwes.dev\/\" data-type=\"URL\" data-id=\"https:\/\/arwes.dev\/\">\u770b\u8d77\u6765\u5f88\u8ba9\u4eba\u5fc3\u52a8\u7684UI\u6846\u67b6<\/a>\uff0c\u518d\u52a0\u4e0a\u62db\u65b0\u8981\u5370\u4f20\u5355\uff0c\u6211\u4e00\u62cd\u8111\u5b50\u51b3\u5b9a\u5199(chao)\u4e00\u4e2a\u518d\u8bf4\u3002<\/p>\n\n\n\n<p>\u516d\u4e2a\u5c0f\u65f6\u7684\u6298\u817e\u4e4b\u540e\uff0c\u7ec8\u4e8e<a href=\"http:\/\/kap0k.sforest.in\">\u4e0a\u7ebf\u4e86\u521d\u7248<\/a>\u3002\u867d\u7136\u8fde\u624b\u518c\u90fd\u6ca1\u7ffb\uff0c\u4f46\u662f\u51ed\u7740<s> \u6e38\u620f\u73a9\u5bb6<\/s> Misc\u9009\u624b \u7684\u76f4\u89c9\uff0c\u9b54\u6539\u90e8\u7f72\u4e00\u6761\u9f99\u5c31\u76f4\u63a5A\u4e0a\u53bb\u4e86\uff08ry<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u8fdeDocs\u90fd\u6ca1\u70b9\u5f00\uff0c\u53cd\u624b\u5c31\u4e00\u4e2agit clone\uff0capt install npm\uff0cnpm run\uff01<\/p>\n\n\n\n<p>\u2026\u2026\u7136\u540e\u5c31\u770b\u5230\u4e86compile\u3001site-deploy\u3001site-start\u7b49\u82e5\u5e72script\uff0c\u51ed\u76f4\u89c9\u8bd5\u4e86\u51e0\u4e2a\uff0c<s>\u7adf\u4e00\u4e2a\u90fd\u8dd1\u4e0d\u8fc7<\/s>\u3002\u770b\u5230\u51e0\u4e2a\u8bed\u6cd5\u62a5\u9519\uff0c\u60f3\u5fc5\u662f\u7248\u672c\u4e0d\u5bf9\uff0c\u9042\u91cd\u65b0n\u4e86\u4e00\u4e2astable\u4e0b\u6765\u3002<s>\u5c31\u4e0d\u8be5apt\u7684<\/s><\/p>\n\n\n\n<p>\u867d\u8bf4\u8fd9\u4e2a\u9879\u76ee\u5df2\u7ecf\u6570\u6708\u6ca1\u6709commit <s>\u5e76\u4e14\u4e00\u526f\u8981\u6b7b\u4e86\u7684\u6837\u5b50<\/s> \uff08\u5176\u5b9e\u8fd8\u6709issue\uff09\uff0c\u4f46\u662f\u60f3\u5fc5\u662f\u6211\u59ff\u52bf\u4e0d\u5bf9\u3002\u9042\u5f00\u59cb\u7ffb\u9605docs\uff0c\u5f00\u59cbnpm install\uff0c\u5f00\u59cbcreate-react-app\uff0c\u2026\u2026\u2014\u2014 \u53ef\u662f\u5c31\u7b97\u88c5\u597d\u4e86modules\uff0c\u6211\u4e5f\u4e0d\u6653\u5f97\u600e\u4e48\u4ece\u96f6\u5f00\u59cb\u7cca\u4e00\u4e2a\u5b98\u7f51\u90a3\u6837\u7684demo\u554a <s>\u4eba\u83dc\u662f\u539f\u7f6a<\/s>\u3002<\/p>\n\n\n\n<p> \u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2dsudo\u89e3\u51b3\u4e86\u4e00\u4e9b\u6743\u9650\u95ee\u9898\uff0c\u5c31\u80fd\u6b63\u5e38\u8dd1\u81ea\u5df1\u7684\u7a7a\u767d\u9879\u76ee\u4e86\u3002react-script\u542f\u52a8\u7684\u65f6\u5019\u5012\u662f\u5f88\u5bb9\u6613\u5730\u5c31\u4e0a\u4e86HTTPS\u5e76\u6539\u597d\u4e86\u7aef\u53e3\u3002<\/p>\n\n\n\n<p>\u4e0d\u8fc7\u56de\u8fc7\u5934\u6765\uff0c\u8fd8\u662f\u53ea\u80fd\u6284\uff08ry<\/p>\n\n\n\n<p>\u4e4b\u524d\u8dd1\u4e0d\u8fc7\u7684\u811a\u672c\u7528root\u6743\u9650\u8dd1\u5c31\u8dd1\u8fc7\u4e86\uff0c\u7aef\u53e3\u5728\u914d\u7f6e\u6587\u4ef6\u53ef\u4ee5\u6539\uff0c\u4f46\u5230\u73b0\u5728\u90fd\u6ca1\u6478\u6e05\u695a\u600e\u4e48\u4e0aHTTPS\uff08\u5b83\u662f\u7528next\u8dd1\u7684\uff09\u3002\u5269\u4e0b\u4e09\u4e2a\u591a\u5c0f\u65f6\u5c31\u7528\u6765\u6478\u6e05\u695a\u8def\u7531\u662f\u600e\u4e48\u56de\u4e8b\uff0c\u6539\u6587\u5b57\uff0c\u6539Logo\uff0c\u6539emoji\uff0c\u75af\u72c2\u8bd5\u9519\u3002\u6700\u540e\u5c31\u53d8\u6210\u4e0a\u9762\u90a3\u6837\u4e86\uff0c\u867d\u7136\u8fd8\u6ca1\u6709\u6dfb\u52a0\u592a\u591a\u5185\u5bb9\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u611f\u60f3<\/h4>\n\n\n\n<p>\u55ef\u2026\u2026\u6bd4\u8d77\u7b2c\u4e00\u6b21\u4e0a\u624bflask\u7684\u65f6\u5019\u8981\u66f4\u6478\u4e0d\u7740\u5934\u8111\uff08\u6320\u5934\uff09<\/p>\n\n\n\n<p>\u6743\u9650\u95ee\u9898\u62a5\u7684\u9519\u8ba9\u4eba\u5b8c\u5168\u8054\u60f3\u4e0d\u5230\u6743\u9650\u95ee\u9898\uff08\u63d0\u793a\u8bed\u6cd5\u9519\u8bef\u5c31\u79bb\u8c31\uff09\u3002\u660e\u660e\u5df2\u7ecf\u7528n\u88c5\u4e86stable\u4e86\u3002\u867d\u7136\u6211\u4e5f\u4e0d\u77e5\u9053\u5b83\u5230\u5e95\u662f\u4e2a\u4ec0\u4e48\u539f\u7406\u3002<\/p>\n\n\n\n<p>Google\u8001\u5e08\u8bf4\u8981require(&#8220;https&#8221;)\uff0c\u53ef\u662f\u6211\u4e00\u6ca1\u770b\u5230\u521b\u5efaapp\u7684\u5730\u65b9\uff0c\u4e8c\u4e0d\u6653\u5f97\u5728\u54ea\u91cclisten\u3002\u56de\u5934\u95ee\u95eeZhyupe\u597d\u4e86\u3002<\/p>\n\n\n\n<p><s>\u4f46\u662f\u610f\u5916\u7684\u597d\u50cf\u8fd8\u633a\u987a\u5229\u7684<\/s><\/p>\n\n\n\n<p>\u8ffd\u8bb0\uff1aHTTPS\u7684\u95ee\u9898\u76f4\u63a5\u4eceApache\u4e0a\u4e86\u5c42Proxy\uff0c<a href=\"https:\/\/stackoverflow.com\/questions\/14259321\/apache-node-js-mod-proxy-how-to-route-one-domain-to-3000-and-another-to-8\" data-type=\"URL\" data-id=\"https:\/\/stackoverflow.com\/questions\/14259321\/apache-node-js-mod-proxy-how-to-route-one-domain-to-3000-and-another-to-8\">\u53c2\u8003\u8fd9\u91cc<\/a>\u89e3\u51b3\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\u770b\u770b\u524d\u4e00\u7bc7\u535a\u6587\u2026\u2026 \u304a\u308f\u304b\u308a\u3044\u305f\u3060\u3051\u305f\u3060\u308d\u3046\u304b\u3002\uff08\u522b\u8bf4\u9898\u89e3\u4e86\u8fde\u9898\u90fd\u6ca1\u8865\u51e0\u9053\uff09 \u55e8\uff0c\u5148\u4e0d\u63d0\u8fd9\u4e2a\u4e86\u3002\u5728\u7fa4\u91cc\u5076\u7136\u770b\u89c1\u4e00\u4e2a\u770b\u8d77\u6765\u5f88\u8ba9\u4eba\u5fc3\u52a8\u7684UI\u6846\u67b6\uff0c\u518d\u52a0\u4e0a\u62db\u65b0\u8981\u5370\u4f20\u5355\uff0c\u6211\u4e00\u62cd\u8111\u5b50\u51b3\u5b9a\u5199(chao)\u4e00\u4e2a\u518d\u8bf4\u3002 \u516d\u4e2a\u5c0f\u65f6\u7684\u6298\u817e\u4e4b\u540e &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/sforest.in\/ja\/first-try-of-node-js\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u5e74\u8f7b\u4eba\u7684\u7b2c\u4e00\u6b21Node.js&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[30],"class_list":["post-2156","post","type-post","status-publish","format-standard","hentry","category-coding","tag-node-js"],"_links":{"self":[{"href":"https:\/\/sforest.in\/ja\/wp-json\/wp\/v2\/posts\/2156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sforest.in\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sforest.in\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sforest.in\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sforest.in\/ja\/wp-json\/wp\/v2\/comments?post=2156"}],"version-history":[{"count":0,"href":"https:\/\/sforest.in\/ja\/wp-json\/wp\/v2\/posts\/2156\/revisions"}],"wp:attachment":[{"href":"https:\/\/sforest.in\/ja\/wp-json\/wp\/v2\/media?parent=2156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sforest.in\/ja\/wp-json\/wp\/v2\/categories?post=2156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sforest.in\/ja\/wp-json\/wp\/v2\/tags?post=2156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}