{"id":3382,"date":"2023-08-03T13:20:21","date_gmt":"2023-08-03T13:20:21","guid":{"rendered":"https:\/\/orfeolibre.org\/inicio\/?post_type=knowledgebase&#038;p=3382"},"modified":"2023-08-30T00:04:49","modified_gmt":"2023-08-30T00:04:49","slug":"orfeong-1-0-con-php-8-1-debian-12-ubuntu-22-04-frontend","status":"publish","type":"knowledgebase","link":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/otros-orfeong-1-0-debian-12-ubuntu-22\/orfeong-1-0-con-php-8-1-debian-12-ubuntu-22-04-frontend\/","title":{"rendered":"NG Frontend"},"content":{"rendered":"<h2>Descripci\u00f3n<\/h2>\n<p>Este manual indica como hacer la instalaci\u00f3n del backend de OrfeoNG v1.0 partiendo de los fuentes en un Debian 12 o Ubuntu 22.04 o Windows XAMP.<\/p>\n<h2>Prerequistos<\/h2>\n<p>Arrancamos con un Linux preferible Kuine-LAMP v6 o Kuine-LAMaP v6 actualizado\u00a0 o con un Windows usando XAMP configurado seg\u00fan <a href=\"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/orfeong-1-0-windows\/instalar-en-ms-windows\/\">esta guia<\/a>.<\/p>\n<h2>Instalaci\u00f3n<\/h2>\n<h3>1. Descargue el frontend del repositorio<\/h3>\n<pre>$&gt; git clone https:\/\/aruba.skinatech.com\/Orfeo-NG\/ng_frontend.git<\/pre>\n<p>y en el directorio creado ng_frontend corra<\/p>\n<pre>$&gt; npm --legacy-peer-deps install<\/pre>\n<p>para instalara todos las dependencias con algunas dependencias obsoletas<\/p>\n<pre>npm WARN deprecated @types\/prosemirror-view@1.24.0: This is a stub types definition. prosemirror-view provides its own type definitions, so you do not need this installed.\r\nnpm WARN deprecated @types\/prosemirror-state@1.4.0: This is a stub types definition. prosemirror-state provides its own type definitions, so you do not need this installed.\r\nnpm WARN deprecated @types\/prosemirror-schema-list@1.2.0: This is a stub types definition. prosemirror-schema-list provides its own type definitions, so you do not need this installed.\r\nnpm WARN deprecated @types\/prosemirror-model@1.17.0: This is a stub types definition. prosemirror-model provides its own type definitions, so you do not need this installed.\r\nnpm WARN deprecated @types\/prosemirror-keymap@1.2.0: This is a stub types definition. prosemirror-keymap provides its own type definitions, so you do not need this installed.\r\nnpm WARN deprecated @types\/prosemirror-inputrules@1.2.0: This is a stub types definition. prosemirror-inputrules provides its own type definitions, so you do not need this installed.\r\nnpm WARN deprecated @types\/prosemirror-commands@1.3.0: This is a stub types definition. prosemirror-commands provides its own type definitions, so you do not need this installed.\r\nnpm WARN deprecated @types\/prosemirror-history@1.3.0: This is a stub types definition. prosemirror-history provides its own type definitions, so you do not need this installed.\r\nnpm WARN deprecated @npmcli\/move-file@2.0.1: This functionality has been moved to @npmcli\/fs\r\nnpm WARN deprecated har-validator@5.1.5: this library is no longer supported\r\nnpm WARN deprecated eivindfjeldstad-dot@0.0.1: Use @eivifj\/dot instead\r\nnpm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell\/sourcemap-codec instead\r\nnpm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https:\/\/v8.dev\/blog\/math-random for details.\r\nnpm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https:\/\/v8.dev\/blog\/math-random for details.\r\nnpm WARN deprecated request@2.88.2: request has been deprecated, see https:\/\/github.com\/request\/request\/issues\/3142\r\nnpm WARN deprecated popper.js@1.15.0: You can find the new Popper v2 at @popperjs\/core, this package is dedicated to the legacy v1\r\nnpm WARN deprecated protractor@7.0.0: We have news to share - Protractor is deprecated and will reach end-of-life by Summer 2023. To learn more and find out about other options please refer to this post on the Angular blog. Thank you for using and contributing to Protractor. https:\/\/goo.gle\/state-of-e2e-in-angular\r\nnpm WARN deprecated tslint@6.1.3: TSLint has been deprecated in favor of ESLint. Please see https:\/\/github.com\/palantir\/tslint\/issues\/4534 for more information.\r\nnpm WARN deprecated core-js@3.1.3: core-js@&lt;3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.<\/pre>\n<p>OJO: Esto no debe existir &#8230; found\u00a0 19 vulnerabilities (6 moderate, 13 high)<\/p>\n<p>Verifique como quedo<\/p>\n<p>$&gt; ng version<\/p>\n<pre>    \/ \\   _ __   __ _ _   _| | __ _ _ __     \/ ___| |   |_ _|\r\n   \/ \u25b3 \\ | '_ \\ \/ _` | | | | |\/ _` | '__|   | |   | |    | |\r\n  \/ ___ \\| | | | (_| | |_| | | (_| | |      | |___| |___ | |\r\n\/_\/   \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_|       \\____|_____|___|\r\n                |___\/\r\n   \r\n\r\nAngular CLI: 16.2.10\r\nNode: 18.12.1 (Unsupported)\r\nPackage Manager: npm 9.2.0\r\nOS: linux x64\r\n\r\nAngular: 16.2.12\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, platform-server\r\n... router\r\n\r\nPackage                            Version\r\n------------------------------------------------------------\r\n@angular-devkit\/architect          0.1402.10\r\n@angular-devkit\/build-angular      14.2.10\r\n@angular-devkit\/core               14.2.10\r\n@angular-devkit\/schematics         14.2.10\r\n@angular\/cdk                       14.2.7\r\n@angular\/cli                       14.2.10\r\n@angular\/material                  14.2.7\r\n@angular\/material-moment-adapter   14.2.7\r\n@schematics\/angular                14.2.10\r\nrxjs                               6.6.7\r\ntypescript                         4.6.4\r\n   \r\nWarning: The current version of Node (18.12.1) is not supported by Angular.<\/pre>\n<p>&nbsp;<\/p>\n<h3>2. Edite los archivos de configuracion<\/h3>\n<p>En ng_frontend\/src\/environments toca editar environment.prod.ts y el environment.ts<\/p>\n<pre>$&gt; cp environment.ts.dist environment.ts   (para devel )\r\n\r\n$&gt; cp environment.prod.ts.dist environment.prod.ts (para produccion)\r\n$&gt; ln -s environment.prod.ts environment.ts  (necesita ambos iguales)  **<\/pre>\n<p>Cambie los servidores<\/p>\n<p><strong>apiUrl<\/strong>: &#8216;http:\/\/demong1.skinatech.com\/ng_backend\/api\/web\/&#8217;,<\/p>\n<div>\n<p><strong>frontUrl<\/strong>: &#8216;http:\/\/demong1.skinatech.com\/orfeo-ng\/&#8217;,<\/p>\n<p><strong>SOCKET_ENDPOINT<\/strong>: &#8216;http:\/\/demong1.skinatech.com:3005&#8217;,<\/p>\n<p>En las implementaciones comerciales, es decir proyectos implementados por nosotros se debe poner <strong>orfeoNgExpress<\/strong> en false<u><\/u><\/p>\n<p>orfeoNgExpress: {<br \/>\nocultarModulos: false,<br \/>\nlimitarCreacion: 60,<br \/>\nlimitarCreacionUsuarios: 5,<br \/>\n}<\/p>\n<p><strong>llaveAES<\/strong>: &#8216;aegoh3quai3Aijum7cae0theifo}uv&#8217;, (esta es la misma que coloco en ng_backend\/api\/config\/params-local.php)<\/p>\n<p><strong> captchaSiteKey<\/strong>: &#8216;6Lc8_d4UAAAAANK-6A3w_lP6Crr6BJzT9ldbK_iO&#8217;, (para el uso de recaptcha de google .. obligatorio)<\/p>\n<\/div>\n<p>Los hash no deben cambiar .. se puede hacer por el menu de consola en kuine<\/p>\n<h3>3. Pruebe que funciona local<\/h3>\n<pre>$&gt; ng serve --host 0.0.0.0<\/pre>\n<p>Debe mostrar compiling &#8230; !!! y no ningun error<\/p>\n<h3>4. Construya el distribuirle para producci\u00f3n<\/h3>\n<p>Como vamos a usar Apache como servidor de aplicaciones vamos a \u00abcompilar\u00bb los fuentes<\/p>\n<pre>$&gt; ng build --prod<\/pre>\n<p>Esto se demora bastante y toca ponerle memoria (4G min) para que lo complete ademas .. es bueno limitarlo con<\/p>\n<pre>$&gt; export NODE_OPTIONS=\"--max-old-space-size=2048\"\r\n\r\n** En Amazon es bueno usar un t3.small con 2G de swap .. para compilar .. luego se puede bajar\r\n<\/pre>\n<h3>5. Ubicar carpeta generada de la aplicaci\u00f3n<\/h3>\n<p>Luego de ejecutar el comando anterior, se debe ubicar la carpeta \u00aborfeo-ng\u00bb generada en la ruta \u00abng_frontend\/dist\/orfeo-ng\u00bb y moverla a la ruta base del servidor \u00ab\/var\/www\/html\u00bb para que pueda ser accedida desde el navegador<\/p>\n<p>https:\/\/192.168.8.27\/orfeo-ng<\/p>\n<h3>6. Verifique que el firewall local le permite &#8211; Linux \/ Kuine<\/h3>\n<pre>$&gt;firewall-cmd  --zone=external --list-all                                                    \r\n<\/pre>\n<p>Deben aparecer los puertos, si no .. toca agregarlos<\/p>\n<pre>$&gt; firewall-cmd  --zone=external --permanent --add-service=http                                                                           \r\n$&gt; firewall-cmd  --zone=external --permanent --add-port=3005\/tcp                                                                           \r\n$&gt; firewall-cmd  --reload<\/pre>\n<p>&nbsp;<\/p>\n<h2>Trucos<\/h2>\n<h3>1. Quitar \/ Activar el recaptcha<\/h3>\n<p>UPDATE `csInicial` SET `estadoCsInicial` = &#8216;0&#8217; WHERE `csInicial`.`idCsInicial` = 1;<\/p>\n<p>&nbsp;<\/p>\n<h2>Problemas<\/h2>\n<h3>1.<\/h3>\n<h2>Referencias<\/h2>\n<p>&#8211;<\/p>\n<p>FIN<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Descripci\u00f3n Este manual indica como hacer la instalaci\u00f3n del backend de OrfeoNG v1.0 partiendo de los fuentes en un Debian 12 o Ubuntu 22.04 o Windows XAMP. Prerequistos Arrancamos con un Linux preferible Kuine-LAMP v6 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","knowledgebase_cat":[53],"class_list":["post-3382","knowledgebase","type-knowledgebase","status-publish","hentry","knowledgebase_cat-otros-orfeong-1-0-debian-12-ubuntu-22"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>NG Frontend - Orfeo SGDEA - Gesti\u00f3n Documental<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/otros-orfeong-1-0-debian-12-ubuntu-22\/orfeong-1-0-con-php-8-1-debian-12-ubuntu-22-04-frontend\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"NG Frontend - Orfeo SGDEA - Gesti\u00f3n Documental\" \/>\n<meta property=\"og:description\" content=\"Descripci\u00f3n Este manual indica como hacer la instalaci\u00f3n del backend de OrfeoNG v1.0 partiendo de los fuentes en un Debian 12 o Ubuntu 22.04 o Windows XAMP. Prerequistos Arrancamos con un Linux preferible Kuine-LAMP v6 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/otros-orfeong-1-0-debian-12-ubuntu-22\/orfeong-1-0-con-php-8-1-debian-12-ubuntu-22-04-frontend\/\" \/>\n<meta property=\"og:site_name\" content=\"Orfeo SGDEA - Gesti\u00f3n Documental\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-30T00:04:49+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/documentacion-orfeo\\\/documentacion-orfeong\\\/otros-orfeong-1-0-debian-12-ubuntu-22\\\/orfeong-1-0-con-php-8-1-debian-12-ubuntu-22-04-frontend\\\/\",\"url\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/documentacion-orfeo\\\/documentacion-orfeong\\\/otros-orfeong-1-0-debian-12-ubuntu-22\\\/orfeong-1-0-con-php-8-1-debian-12-ubuntu-22-04-frontend\\\/\",\"name\":\"NG Frontend - Orfeo SGDEA - Gesti\u00f3n Documental\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/#website\"},\"datePublished\":\"2023-08-03T13:20:21+00:00\",\"dateModified\":\"2023-08-30T00:04:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/documentacion-orfeo\\\/documentacion-orfeong\\\/otros-orfeong-1-0-debian-12-ubuntu-22\\\/orfeong-1-0-con-php-8-1-debian-12-ubuntu-22-04-frontend\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/documentacion-orfeo\\\/documentacion-orfeong\\\/otros-orfeong-1-0-debian-12-ubuntu-22\\\/orfeong-1-0-con-php-8-1-debian-12-ubuntu-22-04-frontend\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/documentacion-orfeo\\\/documentacion-orfeong\\\/otros-orfeong-1-0-debian-12-ubuntu-22\\\/orfeong-1-0-con-php-8-1-debian-12-ubuntu-22-04-frontend\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"NG Frontend\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/#website\",\"url\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/\",\"name\":\"Orfeo SGDEA - Gesti\u00f3n Documental\",\"description\":\"Sistema de Gesti\u00f3n Documental de Archivo Electr\u00f3nico\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"NG Frontend - Orfeo SGDEA - Gesti\u00f3n Documental","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/otros-orfeong-1-0-debian-12-ubuntu-22\/orfeong-1-0-con-php-8-1-debian-12-ubuntu-22-04-frontend\/","og_locale":"es_ES","og_type":"article","og_title":"NG Frontend - Orfeo SGDEA - Gesti\u00f3n Documental","og_description":"Descripci\u00f3n Este manual indica como hacer la instalaci\u00f3n del backend de OrfeoNG v1.0 partiendo de los fuentes en un Debian 12 o Ubuntu 22.04 o Windows XAMP. Prerequistos Arrancamos con un Linux preferible Kuine-LAMP v6 [&hellip;]","og_url":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/otros-orfeong-1-0-debian-12-ubuntu-22\/orfeong-1-0-con-php-8-1-debian-12-ubuntu-22-04-frontend\/","og_site_name":"Orfeo SGDEA - Gesti\u00f3n Documental","article_modified_time":"2023-08-30T00:04:49+00:00","twitter_card":"summary_large_image","twitter_misc":{"Tiempo de lectura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/otros-orfeong-1-0-debian-12-ubuntu-22\/orfeong-1-0-con-php-8-1-debian-12-ubuntu-22-04-frontend\/","url":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/otros-orfeong-1-0-debian-12-ubuntu-22\/orfeong-1-0-con-php-8-1-debian-12-ubuntu-22-04-frontend\/","name":"NG Frontend - Orfeo SGDEA - Gesti\u00f3n Documental","isPartOf":{"@id":"https:\/\/orfeolibre.org\/inicio\/#website"},"datePublished":"2023-08-03T13:20:21+00:00","dateModified":"2023-08-30T00:04:49+00:00","breadcrumb":{"@id":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/otros-orfeong-1-0-debian-12-ubuntu-22\/orfeong-1-0-con-php-8-1-debian-12-ubuntu-22-04-frontend\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/otros-orfeong-1-0-debian-12-ubuntu-22\/orfeong-1-0-con-php-8-1-debian-12-ubuntu-22-04-frontend\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/otros-orfeong-1-0-debian-12-ubuntu-22\/orfeong-1-0-con-php-8-1-debian-12-ubuntu-22-04-frontend\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/orfeolibre.org\/inicio\/"},{"@type":"ListItem","position":2,"name":"NG Frontend"}]},{"@type":"WebSite","@id":"https:\/\/orfeolibre.org\/inicio\/#website","url":"https:\/\/orfeolibre.org\/inicio\/","name":"Orfeo SGDEA - Gesti\u00f3n Documental","description":"Sistema de Gesti\u00f3n Documental de Archivo Electr\u00f3nico","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/orfeolibre.org\/inicio\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"}]}},"_links":{"self":[{"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/knowledgebase\/3382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/comments?post=3382"}],"version-history":[{"count":11,"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/knowledgebase\/3382\/revisions"}],"predecessor-version":[{"id":3552,"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/knowledgebase\/3382\/revisions\/3552"}],"wp:attachment":[{"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/media?parent=3382"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/knowledgebase_cat?post=3382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}