{"id":99,"date":"2022-06-10T06:16:12","date_gmt":"2022-06-09T21:16:12","guid":{"rendered":"https:\/\/global-hack.com\/blog\/?p=99"},"modified":"2022-06-10T06:16:12","modified_gmt":"2022-06-09T21:16:12","slug":"%e8%b6%85%e7%b5%b6%e7%b0%a1%e5%8d%98%ef%bc%81pythonflaskelectronadminlte%e3%81%a7%e7%ae%a1%e7%90%86%e7%94%bb%e9%9d%a2%e3%82%92%e6%a7%8b%e7%af%89%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/global-hack.com\/blog\/archives\/99","title":{"rendered":"\u8d85\u7d76\u7c21\u5358\uff01Python+Flask+Electron+AdminLTE\u3067\u7ba1\u7406\u753b\u9762\u3092\u69cb\u7bc9\u3057\u3066\u307f\u308b\uff01"},"content":{"rendered":"<h3>\u6982\u8981<\/h3>\n<p>Python+Flask+Electron+AdminLTE\u3067\u7ba1\u7406\u753b\u9762\u3092\u69cb\u7bc9\u3059\u308b\u3002\u3057\u304b\u3082\u79d2\u901f\u3067\u69cb\u7bc9\u3067\u304d\u308b\u30fb\u30fb\u30fb\u306f\u305a\u3067\u3059\uff08\u6c57\uff09<\/p>\n<p>CMS\u69cb\u7bc9\u306a\u3069\u306e\u30b9\u30bf\u30fc\u30c8\u30a2\u30c3\u30d7\u306b\u3054\u5229\u7528\u3044\u305f\u3060\u3051\u308c\u3070\u3001\u307e\u305a\u9593\u9055\u3044\u306a\u304f\u7206\u901f\u958b\u767a\u306e\u5148\u99c6\u3051\u3068\u306a\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3055\u3066\u3001\u69cb\u7bc9\u306b\u639b\u304b\u308b\u524d\u306b\u8efd\u304f\u8aac\u660e\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u307e\u305a\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306fPython\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306fElectron\uff08HTML\u30fbCSS\u30fbjavascript\uff09\u3002\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3068\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3092\u7d50\u3073\u3064\u3051\u308b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306bFlask\u3068\u3044\u3046\u5c0f\u898f\u6a21\u958b\u767a\u3067\u7528\u3044\u3089\u308c\u308b\u7c21\u6613\u7684\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/flask.palletsprojects.com\/en\/2.1.x\/\" target=\"_blank\" rel=\"nofollow noopener\" title=\"Flask\uff08\u516c\u5f0f\uff09\">Flask\uff08\u516c\u5f0f\uff09<\/a><\/p>\n<p>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3067\u306f\u3001Electron\u306e\u4e2d\u306bAdminLTE\u3068\u3044\u3046\u3042\u3089\u304b\u3058\u3081\u826f\u3044\u5177\u5408\u306b\u4ed5\u4e0a\u304c\u3063\u305f\u7ba1\u7406\u753b\u9762\u98a8\u306e\u30c7\u30b6\u30a4\u30f3\u3092\u57cb\u3081\u8fbc\u307f\u307e\u3059\u3002\u3053\u306eAdminLTE\u306fBootstrap\u3067UI\u304c\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u6c7a\u307e\u308a\u4e8b\u3055\u3048\u5b88\u308c\u3070\u305d\u308c\u306a\u308a\u306e\u30c7\u30b6\u30a4\u30f3\u306b\u4ed5\u4e0a\u304c\u3063\u3066\u3057\u307e\u3046\u3068\u3066\u3082\u91cd\u5b9d\u3059\u308b\u4ee3\u7269\u306a\u306e\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/adminlte.io\/themes\/v3\/\" title=\"AdminLTE\uff08\u516c\u5f0f\uff09\" target=\"_blank\" rel=\"nofollow noopener\">AdminLTE\uff08\u516c\u5f0f\uff09<\/a><\/p>\n<p>Electron\u306f\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\uff08MacOS\u30fbWindows\u30fbLinux\uff09\u3067\u52d5\u4f5c\u3059\u308b\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u3092\u3001Web\uff08Chromium + Node.js\uff09\u6280\u8853\u3092\u7528\u3044\u3066\u958b\u767a\u3067\u304d\u308bGUI\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.electronjs.org\/\" target=\"_blank\" rel=\"nofollow noopener\" title=\"Electron\uff08\u516c\u5f0f\uff09\">Electron\uff08\u516c\u5f0f\uff09<\/a><\/p>\n<h4>\u5b8c\u6210\u30a4\u30e1\u30fc\u30b8<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/global-hack.com\/blog\/wp-content\/uploads\/2022\/06\/PythonFlaskElectronAdminLTE_complete.png\" alt=\"Python+Flask+Electron+AdminLTE\u3067\u7ba1\u7406\u753b\u9762\u3092\u69cb\u7bc9\u3057\u305f\u7d50\u679c\" width=\"1440\" height=\"898\" class=\"alignnone size-full wp-image-101\" \/><\/p>\n<p>\u5b8c\u6210\u5f8c\u306f\u3001\u4e0a\u306e\u753b\u50cf\u306e\u3088\u3046\u306a\u8868\u793a\u304c\u51fa\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u81ea\u5206\u304c\u4f5c\u3063\u305f\u308f\u3051\u3067\u3082\u306a\u3044\u306e\u306b\u3001\u306a\u305c\u304b\u300c\u308f\u3044\u304c\u4f5c\u3063\u305f\u3063\u305fw\u300d\u611f\u306b\u6ea2\u308c\u304b\u3048\u308b\u3068\u601d\u3044\u307e\u3059\uff08\u7b11\uff09\uff01<\/p>\n<p><!--more--><\/p>\n<h3>\u5c0e\u5165\u958b\u59cb<\/h3>\n<p>\u3053\u3053\u304b\u3089\u9806\u3092\u8ffd\u3063\u3066\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u3044\u3066\u884c\u304f\u3060\u3051\u3067\u3001\u5148\u307b\u3069\u3054\u89a7\u306b\u306a\u3063\u305f\u7ba1\u7406\u753b\u9762\u98a8\u306e\u3068\u3053\u308d\u307e\u3067\u5b8c\u6210\u307e\u3067\u7a81\u3063\u8d70\u308c\u307e\u3059\u306e\u3067\u3001\u4efb\u610f\u306b\u540d\u524d\u3092\u5909\u3048\u308b\u3068\u3053\u308d\u3060\u3051\u306b\u3054\u81ea\u8eab\u3067\u7ba1\u7406\u3057\u3084\u3059\u3044\u3088\u3046\u6ce8\u610f\u3092\u6255\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h4>\u4eee\u60f3\u958b\u767a\u74b0\u5883\u3092\u69cb\u7bc9<\/h4>\n<p>\u3044\u3064\u3082\u306e\u304a\u307e\u3058\u306a\u3044\uff06\u5100\u5f0f\u3060\u3068\u601d\u3063\u3066\u3001\u30b5\u30af\u30c3\u3068\u4ed5\u4e0a\u3052\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\u30ea\u30f3\u30af\u3092\u53c2\u7167\u3057\u3001\u4eee\u60f3\u958b\u767a\u74b0\u5883\u69cb\u7bc9\u307e\u3067\u306e\u3068\u3053\u308d\u307e\u3067\u9032\u3093\u3060\u3089\u3001\u307e\u305f\u3053\u3061\u3089\u3078\u623b\u3063\u3066\u304d\u3066\u5148\u3078\u9032\u3081\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/global-hack.com\/blog\/archives\/93\" target=\"_blank\" rel=\"nofollow noopener\" title=\"\u3010\u7c21\u5358Python\u3011venv\u3067\u30b5\u30af\u30c3\u3068\u4eee\u60f3\u74b0\u5883\u3092\u7528\u610f\u3057\u3066\u307f\u308b\u3010Mac\u958b\u767a\u74b0\u5883\u69cb\u7bc9\u3011\">\u3010\u7c21\u5358Python\u3011venv\u3067\u30b5\u30af\u30c3\u3068\u4eee\u60f3\u74b0\u5883\u3092\u7528\u610f\u3057\u3066\u307f\u308b\u3010Mac\u958b\u767a\u74b0\u5883\u69cb\u7bc9\u3011<\/a><\/p>\n<h4>\u4eee\u60f3\u74b0\u5883\u3092\u8d77\u52d5\u3055\u305b\u308b<\/h4>\n<p>\u4e0a\u8a18\u306e\u30ea\u30f3\u30af\u5148\u306e\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u306e\u90e8\u5206\u307e\u3067\u9032\u307f\u307e\u3057\u305f\u3089\u3001\u3053\u3061\u3089\u306e\u8a18\u4e8b\u306b\u5408\u6d41\u3057\u4e0b\u3078\u9032\u307f\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ source fdz\/bin\/activate<\/code><\/pre>\n<\/div>\n<p><span style=\"color: #ff0000;\">\u3053\u306e\u307e\u307e\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300cfdz\u300d\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\u3092\u4f7f\u7528\u3057\u307e\u3059\u304c\u3001\u4efb\u610f\u3067\u540d\u524d\u3092\u4ed8\u3051\u305f\u65b9\u306f\u3001\u305d\u306e\u540d\u524d\u3092\u8e0f\u8972\u3057\u3066\u304a\u4f7f\u3044\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5148\u7a0b\u306e\u4efb\u610f\u3067\u4ed8\u3051\u305f\u540d\u524d\u306b\u6301\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ (fdz) cd fdz<\/code><\/pre>\n<\/div>\n<h4>\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30ed\u30fc\u30ab\u30eb\u3078\u6301\u3063\u3066\u304f\u308b<\/h4>\n<p>\u4eca\u56de\u306e\u8a18\u4e8b\u306e\u305f\u3081\u306b\u3001\u79c1\u304c\u3053\u3063\u305d\u308a\u3068github\u306e\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3078\u4ed5\u8fbc\u3093\u3067\u304a\u304d\u307e\u3057\u305f\u306e\u3067\u3001\u307e\u305a\u306fAdminLTE\u3092\u30ed\u30fc\u30ab\u30eb\u3078\u53ec\u559a\u3057\u307e\u3059\uff01\u901a\u5e38\u306eclone\u3060\u3068\u5916\u5074\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u4e00\u7dd2\u306b\u542b\u307e\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u304c\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u306a\u3089\u3070\u4e2d\u8eab\u3060\u3051\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #ff0000;\">\u6700\u5f8c\u306e\u884c\u306e\u300cmaster\u300d\u306f\u30d6\u30e9\u30f3\u30c1\u306b\u5408\u308f\u305b\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ (fdz) git init\r\n$ (fdz) git remote add origin https:\/\/github.com\/Global-Hack\/Python-Flask-Electron-AdminLTE.git\r\n$ (fdz) git fetch --all --prune\r\n$ (fdz) git pull origin master\r\n<\/code><\/pre>\n<\/div>\n<h4>Electron\u3092\u5165\u308c\u308b<\/h4>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ (fdz) npm install electron<\/code><\/pre>\n<\/div>\n<h4>Python\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306eFlask\u3092\u5165\u308c\u308b<\/h4>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ (fdz) pip install Flask<\/code><\/pre>\n<\/div>\n<h4>\u521d\u671f\u5316<\/h4>\n<p>\u30bd\u30fc\u30b9\u7ba1\u7406\u306b\u5fc5\u8981\u306apackage.json\u304c\u65e2\u306b\u3042\u308b\u3068\u306f\u601d\u3044\u307e\u3059\u304c\u4e00\u5fdc\u304a\u307e\u3058\u306a\u3044\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ (fdz) npm init -y<\/code><\/pre>\n<\/div>\n<h4>request\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>HTTP\u901a\u4fe1\u306b\u5fc5\u8981\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ (fdz) npm install --save request<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ (fdz) npm install --save request-promise<\/code><\/pre>\n<\/div>\n<h4>python-shell\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>Node.js\u3067javascritp\u304b\u3089Python\u3001Python\u304b\u3089jacascript\u306e\u30ea\u30af\u30a8\u30b9\u30c8\uff06\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u5b9f\u73fe\u3055\u305b\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.npmjs.com\/package\/python-shell\" target=\"_blank\" rel=\"nofollow noopener\" title=\"python-shell\uff08\u516c\u5f0f\u8a73\u7d30\u8aac\u660e\uff09\">python-shell\uff08\u516c\u5f0f\u8a73\u7d30\u8aac\u660e\uff09<\/a><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ (fdz) npm install --save python-shell<\/code><\/pre>\n<\/div>\n<h3>Python+Flask+Electron+AdminLTE\u306e\u52d5\u4f5c\u78ba\u8a8d<\/h3>\n<p>\u3044\u3088\u3044\u3088\u5b8c\u6210\u3067\u3059\uff01\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u6700\u521d\u306e\u65b9\u3067\u898b\u305b\u305f\u5b8c\u6210\u753b\u50cf\u306e\u3088\u3046\u306a\u8868\u793a\u304c\u51fa\u3066\u3044\u308c\u3070\u5927\u4e08\u592b\u3067\u3059\uff01<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ (fdz) electron .\r\n<\/code><\/pre>\n<\/div>\n<h4>\u3042\u3068\u304c\u304d<\/h4>\n<p>\u3042\u3068\u306f\u3042\u306a\u305f\u306e\u671b\u3093\u3060\u5f62\u306b\u3001\u5c11\u3057\u305a\u3064\u8fd1\u3065\u3051\u3066\u3044\u3051\u308c\u3070\u79c1\u3068\u3057\u3066\u3082\u5e78\u3044\u3067\u3059\u3002\u305f\u3068\u3048\u5931\u6557\u3057\u305f\u3068\u3057\u3066\u3082\u3001\u3053\u3053\u307e\u3067\u306e\u6d41\u308c\u3092\u30b5\u30af\u30c3\u3068\u4ed5\u4e0a\u3052\u3089\u308c\u308b\u3042\u306a\u305f\u306a\u3089\u3070\u5927\u3057\u305f\u82e6\u52b4\u3067\u3082\u306a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u5931\u6557\u3092\u6050\u308c\u305a\u3001\u601d\u3046\u5b58\u5206\u66b4\u308c\u307e\u308f\u3063\u3066\u4e0b\u3055\u3044\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>\u6982\u8981 Python+Flask+Electron+AdminLTE\u3067\u7ba1\u7406\u753b\u9762\u3092\u69cb\u7bc9\u3059\u308b\u3002\u3057\u304b\u3082\u79d2\u901f\u3067\u69cb\u7bc9\u3067\u304d\u308b\u30fb\u30fb\u30fb\u306f\u305a\u3067\u3059\uff08\u6c57\uff09 CMS\u69cb\u7bc9\u306a\u3069\u306e\u30b9\u30bf\u30fc\u30c8\u30a2\u30c3\u30d7\u306b\u3054\u5229\u7528\u3044\u305f\u3060\u3051\u308c\u3070\u3001\u307e\u305a\u9593\u9055\u3044\u306a\u304f\u7206\u901f\u958b\u767a\u306e\u5148\u99c6\u3051\u3068\u306a\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002 &#038;n <a class=\"mh-excerpt-more\" href=\"https:\/\/global-hack.com\/blog\/archives\/99\" title=\"\u8d85\u7d76\u7c21\u5358\uff01Python+Flask+Electron+AdminLTE\u3067\u7ba1\u7406\u753b\u9762\u3092\u69cb\u7bc9\u3057\u3066\u307f\u308b\uff01\">&#8230;<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":105,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41,46],"tags":[54,53,52,55],"class_list":["post-99","post","type-post","status-publish","format-standard","has-post-thumbnail","category-node-js","category-python","tag-adminlte","tag-electron","tag-flask","tag-55"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/global-hack.com\/blog\/wp-content\/uploads\/2022\/06\/PythonFlaskElectronAdminLTE_2.png","_links":{"self":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":0,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts\/99\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/media\/105"}],"wp:attachment":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/categories?post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/tags?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}