{"id":3832,"date":"2024-07-11T20:09:02","date_gmt":"2024-07-11T20:09:02","guid":{"rendered":"https:\/\/orfeolibre.org\/inicio\/?post_type=knowledgebase&#038;p=3832"},"modified":"2025-08-12T19:55:48","modified_gmt":"2025-08-12T19:55:48","slug":"ng-fronted-2-0","status":"publish","type":"knowledgebase","link":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/orfeong-sgdea-2-0-linux\/ng-fronted-2-0\/","title":{"rendered":"NG Frontend 2.0"},"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 13 o Ubuntu 22.04 o Windows XAMP.<\/p>\n<h2>Prerequistos<\/h2>\n<p>Arrancamos con un Linux preferible Kuine-LAMP v7 o Kuine-LAMaP v7 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-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-view@1.24.0: This is a stub types definition. prosemirror-view provides its own type definitions, so you do not need this installed.<\/pre>\n<pre>........\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.\r\n\r\nadded 1380 packages, and audited 1381 packages in 2m\r\n\r\n143 packages are looking for funding\r\nrun `npm fund` for details<\/pre>\n<pre>OJO: Esto no debe existir ... found\u00a0 19 vulnerabilities (6 moderate, 13 high)<\/pre>\n<p>Verifique como quedo<\/p>\n<p>$&gt; ng version<\/p>\n<pre>    \/ \\   _ __   __ _ _   _| | __ _ _ __     \/ ___| |   |_ _|\r\n   \/ \u25b3 \\ | '_ \\ \/ _` | | | | |\/ _` | '__|   | |   | |    | |\r\n  \/ ___ \\| | | | (_| | |_| | | (_| | |      | |___| |___ | |\r\n\/_\/   \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_|       \\____|_____|___|\r\n                |___\/<\/pre>\n<pre>Angular CLI: 14.2.10\r\nNode: 19.9.0 (Unsupported)\r\nPackage Manager: npm 9.6.3 \r\nOS: linux x64\r\n\r\nAngular: 14.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<\/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<p><strong>apiUrlBasePath<\/strong>: &#8216;http:\/\/demong1.skinatech.com\/ng_backend&#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\/socket&#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_d4AANK-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 13 o Ubuntu 22.04 o Windows XAMP. Prerequistos Arrancamos con un Linux preferible Kuine-LAMP v7 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","knowledgebase_cat":[58],"class_list":["post-3832","knowledgebase","type-knowledgebase","status-publish","hentry","knowledgebase_cat-orfeong-sgdea-2-0-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>NG Frontend 2.0 - 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\/orfeong-sgdea-2-0-linux\/ng-fronted-2-0\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"NG Frontend 2.0 - 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 13 o Ubuntu 22.04 o Windows XAMP. Prerequistos Arrancamos con un Linux preferible Kuine-LAMP v7 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/orfeong-sgdea-2-0-linux\/ng-fronted-2-0\/\" \/>\n<meta property=\"og:site_name\" content=\"Orfeo SGDEA - Gesti\u00f3n Documental\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-12T19:55:48+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\/orfeong-sgdea-2-0-linux\/ng-fronted-2-0\/\",\"url\":\"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/orfeong-sgdea-2-0-linux\/ng-fronted-2-0\/\",\"name\":\"NG Frontend 2.0 - Orfeo SGDEA - Gesti\u00f3n Documental\",\"isPartOf\":{\"@id\":\"https:\/\/orfeolibre.org\/inicio\/#website\"},\"datePublished\":\"2024-07-11T20:09:02+00:00\",\"dateModified\":\"2025-08-12T19:55:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/orfeong-sgdea-2-0-linux\/ng-fronted-2-0\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/orfeong-sgdea-2-0-linux\/ng-fronted-2-0\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/orfeong-sgdea-2-0-linux\/ng-fronted-2-0\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/orfeolibre.org\/inicio\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"NG Frontend 2.0\"}]},{\"@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 2.0 - 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\/orfeong-sgdea-2-0-linux\/ng-fronted-2-0\/","og_locale":"es_ES","og_type":"article","og_title":"NG Frontend 2.0 - 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 13 o Ubuntu 22.04 o Windows XAMP. Prerequistos Arrancamos con un Linux preferible Kuine-LAMP v7 [&hellip;]","og_url":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/orfeong-sgdea-2-0-linux\/ng-fronted-2-0\/","og_site_name":"Orfeo SGDEA - Gesti\u00f3n Documental","article_modified_time":"2025-08-12T19:55:48+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\/orfeong-sgdea-2-0-linux\/ng-fronted-2-0\/","url":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/orfeong-sgdea-2-0-linux\/ng-fronted-2-0\/","name":"NG Frontend 2.0 - Orfeo SGDEA - Gesti\u00f3n Documental","isPartOf":{"@id":"https:\/\/orfeolibre.org\/inicio\/#website"},"datePublished":"2024-07-11T20:09:02+00:00","dateModified":"2025-08-12T19:55:48+00:00","breadcrumb":{"@id":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/orfeong-sgdea-2-0-linux\/ng-fronted-2-0\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/orfeong-sgdea-2-0-linux\/ng-fronted-2-0\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeong\/orfeong-sgdea-2-0-linux\/ng-fronted-2-0\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/orfeolibre.org\/inicio\/"},{"@type":"ListItem","position":2,"name":"NG Frontend 2.0"}]},{"@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\/3832","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=3832"}],"version-history":[{"count":8,"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/knowledgebase\/3832\/revisions"}],"predecessor-version":[{"id":6638,"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/knowledgebase\/3832\/revisions\/6638"}],"wp:attachment":[{"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/media?parent=3832"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/knowledgebase_cat?post=3832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}