<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jordano Moscoso on Medium]]></title>
        <description><![CDATA[Stories by Jordano Moscoso on Medium]]></description>
        <link>https://medium.com/@playlights?source=rss-740699c2e91e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*k03QOYnXXOBuF0ci.jpeg</url>
            <title>Stories by Jordano Moscoso on Medium</title>
            <link>https://medium.com/@playlights?source=rss-740699c2e91e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:11:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@playlights/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Getting started with Rails + Vue: Server-side rendering]]></title>
            <link>https://medium.com/tekton-labs/getting-started-with-rails-vue-server-side-rendering-33af435ac763?source=rss-740699c2e91e------2</link>
            <guid isPermaLink="false">https://medium.com/p/33af435ac763</guid>
            <category><![CDATA[vue]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[Jordano Moscoso]]></dc:creator>
            <pubDate>Mon, 11 Feb 2019 16:38:03 GMT</pubDate>
            <atom:updated>2021-12-19T17:40:18.579Z</atom:updated>
            <content:encoded><![CDATA[<h3>Getting started with Rails + Vue</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6kiaBHT85iJQvOjRnK6UxA.png" /></figure><blockquote>UPDATE: This post was written few years ago. On Rails 7 you can use importmaps. Please check new Rails 7 documentation.</blockquote><p>Nowadays, web application users require pretty interactive interfaces. To achieve this objective developers work with front-end frameworks like Angular, React or Vue. However, a common drawback is how long it takes to create a front-end and an API and many companies cannot afford the time and costs it implies.</p><p>In the GoRails website, <a href="https://gorails.com/series/using-vuejs-with-rails"><strong>Chris Oliver</strong></a><strong> </strong>managed a way to make Vue.js and Rails work great together. So I wanted to take it to the next level using forms and Vue validations with Vuelidate.</p><p>Let’s get started.</p><h4>Basic setup with Webpack and Tailwind CSS</h4><p>To start, just create a new rails project with web pack:</p><pre>rails new vuerails --webpack</pre><p>Before writing our main javascript to import vue, let&#39;s add normalize.css and Tailwind CSS, a powerful library to write fast user interfaces. For this, we should generate the initial javascript configuration:</p><pre>yarn add tailwindcss<br>node_modules/.bin/tailwind init app/javascript/css/tailwind.js</pre><p>And our CSS import file for tailwind:</p><pre>/* app/javascript/css/application.css */<br>@tailwind preflight; /* Basic Normalize */<br>@tailwind utilities; /* Tailwindcss utilities */</pre><p>Finally, add it to Postcss to make it available on web pack on our application.js file:</p><pre>/* .postcssrs.yml */<br>plugins:<br>  postcss-import: {}<br>  postcss-cssnext: {}<br>  tailwindcss: {}</pre><pre>/* app/javascript/packs/application.js */<br>/* eslint no-console:0 */<br>import &quot;../css/application.css&quot;;</pre><p>On our application layout view we should add the web packer tags to get the proper javascript and stylesheets:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>  &lt;head&gt;<br>    &lt;title&gt;Vuerails&lt;/title&gt;<br>    &lt;%= csrf_meta_tags %&gt;<br>    &lt;%= csp_meta_tag %&gt;<br>    &lt;%= stylesheet_link_tag    &#39;application&#39;, media: &#39;all&#39;, &#39;data-turbolinks-track&#39;: &#39;reload&#39; %&gt;<br>    &lt;%= javascript_include_tag &#39;application&#39;, &#39;data-turbolinks-track&#39;: &#39;reload&#39; %&gt;<br>    &lt;%= stylesheet_pack_tag &#39;application&#39;, media: &#39;all&#39;, &#39;data-turbolinks-track&#39;: &#39;reload&#39; %&gt;<br>    &lt;%= javascript_pack_tag &#39;application&#39;, &#39;data-turbolinks-track&#39;: &#39;reload&#39; %&gt;<br>  &lt;/head&gt;</pre><pre>&lt;body&gt;<br>    &lt;style&gt;<br>      html, body {<br>        height: 100%;<br>      }<br>    &lt;/style&gt;<br>   &lt;div class=&quot;relative block h-full&quot; data-behavior=&quot;vue&quot;&gt;<br>      &lt;div class=&quot;relative flex items-center justify-center h-full&quot;&gt;<br>        &lt;div class=&quot;block login-box-container w-5/6 md:w-3/4 xl:w-1/4 &quot;&gt;<br>          &lt;%= yield %&gt;<br>        &lt;/div&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><p>Great, we now have Tailwind CSS installed to work with.</p><p>Let’s create a page and protect it. To achieve this, we create a controller with a simple action:</p><pre>rails g controller Home index</pre><p>We need to overwrite routes config/routes.rb</p><pre>Rails.application.routes.draw do<br>  root to: &#39;home#index&#39;<br>end</pre><h4>Devise and Vue views</h4><p>Let&#39;s add Devise to protect the page, generate our model, migrate it and generate the login page (don’t forget to add it to your gemfile first):</p><pre>rails generate devise:install<br>rails generate devise User<br>rake db:migrate<br>rails generate devise:views -v sessions</pre><p>Let&#39;s protect our page:</p><pre>class HomeController &lt; ApplicationController<br>  before_action :authenticate_user!</pre><pre>  def index<br>  end<br>end</pre><p>Currently, we have a simple page protected by Devise, now let&#39;s change our login to use Vue, first, install it:</p><pre>rails webpacker:install:vue</pre><p>It generates some default files and we don’t need, so let&#39;s remove them:</p><pre>rm app/javascript/app.vue<br>rm app/javascript/packs/hello_vue.js</pre><p>Let&#39;s add Turbolinks and Vuelidate and write our first application loader for Vue:</p><pre>yarn add vue-turbolinks vuelidate</pre><p>Then import them on our main web pack application file and set Vue to use them, and define where our components will be available, in this case on an element with data-behavior as Vue:</p><pre>yarn add vue-turbolinks vuelidate</pre><pre>/* eslint no-console:0 */<br>import &quot;../css/application.css&quot;;<br>import TurbolinksAdapter from &#39;vue-turbolinks&#39;;<br>import Vuelidate from &#39;vuelidate&#39;;<br>import Vue from &#39;vue/dist/vue.esm&#39;;<br>import Login from &#39;../components/login.vue&#39;;<br><br>Vue.use(Vuelidate)<br>Vue.use(TurbolinksAdapter)<br><br>Vue.component(&#39;login&#39;, Login);<br><br>document.addEventListener(&#39;turbolinks:load&#39;, () =&gt; {<br> const app = new Vue({<br>   el: &#39;[data-behavior=&quot;vue&quot;]&#39;<br> })<br>})</pre><p>And we should add the data behavior tag to make components available inside this element:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>  &lt;head&gt;<br>    &lt;title&gt;Vuerails&lt;/title&gt;<br>    &lt;%= csrf_meta_tags %&gt;<br>    &lt;%= csp_meta_tag %&gt;<br>    &lt;%= stylesheet_link_tag    &#39;application&#39;, media: &#39;all&#39;, &#39;data-turbolinks-track&#39;: &#39;reload&#39; %&gt;<br>    &lt;%= javascript_include_tag &#39;application&#39;, &#39;data-turbolinks-track&#39;: &#39;reload&#39; %&gt;<br>    &lt;%= stylesheet_pack_tag &#39;application&#39;, media: &#39;all&#39;, &#39;data-turbolinks-track&#39;: &#39;reload&#39; %&gt;<br>    &lt;%= javascript_pack_tag &#39;application&#39;, &#39;data-turbolinks-track&#39;: &#39;reload&#39; %&gt;<br>  &lt;/head&gt;</pre><pre>&lt;body&gt;<br>    &lt;style&gt;<br>      html, body {<br>        height: 100%;<br>      }<br>    &lt;/style&gt;<br>   &lt;div class=&quot;relative block h-full&quot; data-behavior=&quot;vue&quot;&gt;<br>      &lt;div class=&quot;relative flex items-center justify-center h-full&quot;&gt;<br>        &lt;div class=&quot;block login-box-container w-5/6 md:w-3/4 xl:w-1/4 &quot;&gt;<br>          &lt;%= yield %&gt;<br>        &lt;/div&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><p>Great, now let’s use Vue components instead of the regular view. First, create our login component:</p><pre>&lt;style scoped&gt;<br> .login-footer {<br> background-color: #e6e6e6;<br> }<br>&lt;/style&gt;<br>&lt;template&gt;<br> &lt;div class=&quot;bg-white rounded text-wktext&quot;&gt;<br>	 &lt;form :action=&quot;action&quot; method=&quot;post&quot;&gt;<br>		 &lt;div class=&quot;rounded-t py-4 px-5 bg-blue&quot;&gt;<br>		 	&lt;span class=&quot;text-base text-white text-wktext-bold&quot;&gt;Welcome, please login&lt;/span&gt;<br>		 &lt;/div&gt;<br>		 &lt;div class=&quot;my-10 mx-8&quot;&gt;<br>			 &lt;input name=&quot;authenticity_token&quot; type=&quot;hidden&quot; v-bind:value=&quot;token&quot;&gt;<br>			 &lt;div class=&quot;relative block w-full mb-10 material-input&quot;&gt;<br>				 &lt;input class=&quot;block text-lg p-2 w-full border-0 border-b-2 border-grey-dark focus:outline-none&quot; type=&quot;text&quot; name=&quot;user[email]&quot; required v-model.trim=&quot;$v.email.$model&quot;&gt;<br>				 &lt;span class=&quot;relative block bar&quot;&gt;&lt;/span&gt;<br>				 &lt;label class=&quot;block text-lg absolute pointer-events-none&quot;&gt;Email&lt;/label&gt;<br>				 &lt;span class=&quot;form-text text-danger&quot; v-if=&quot;$v.email.$error&quot;&gt;Campo inválido.&lt;/span&gt;<br>			 &lt;/div&gt;<br>			 &lt;div class=&quot;relative block w-full mb-10 material-input&quot;&gt;<br>				 &lt;input class=&quot;block text-lg p-2 w-full border-0 border-b-2 border-grey-dark focus:outline-none&quot; type=&quot;password&quot; name=&quot;user[password]&quot; required v-model.trim=&quot;$v.password.$model&quot;&gt;<br>				 &lt;span class=&quot;relative block bar&quot;&gt;&lt;/span&gt;<br>				 &lt;label class=&quot;block text-lg absolute pointer-events-none&quot;&gt;Password&lt;/label&gt;<br>				 &lt;span class=&quot;form-text text-danger&quot; v-if=&quot;$v.password.$error&quot;&gt;Campo inválido.&lt;/span&gt;<br>			 &lt;/div&gt;<br>		 &lt;/div&gt;<br>		 &lt;div class=&quot;login-footer rounded-b py-5 px-12&quot;&gt;<br>		 	&lt;input type=&quot;submit&quot; value=&quot;Log In&quot; class=&quot;text-base text-white py-2 px-3 rounded w-full cursor-pointer bg-blue&quot; :disabled=&quot;$v.$invalid&quot;&gt;<br>		 &lt;/div&gt;<br>	 &lt;/form&gt;<br> &lt;/div&gt;<br>&lt;/template&gt;<br>&lt;script&gt;<br>	import { required, email } from &#39;vuelidate/lib/validators&#39;<br> export default {<br>  props: [&#39;action&#39;, &#39;token&#39;],<br>  data() {<br>   	return {<br>     	email: &quot;&quot;,<br>     	password: &quot;&quot;<br>   	}<br> 	},<br>  validations: {<br>    email: {<br>      required,<br>      email<br>    },<br>    password: {<br>      required<br>    }<br>  }<br> }<br>&lt;/script&gt;</pre><p>Then add it to our Vue import file:</p><pre>/* eslint no-console:0 */<br>import &quot;../css/application.css&quot;;<br>import TurbolinksAdapter from &#39;vue-turbolinks&#39;;<br>import Vuelidate from &#39;vuelidate&#39;;<br>import Vue from &#39;vue/dist/vue.esm&#39;;<br>import Login from &#39;../components/login.vue&#39;;<br><br>Vue.use(Vuelidate)<br>Vue.use(TurbolinksAdapter)<br><br>Vue.component(&#39;login&#39;, Login);<br><br>document.addEventListener(&#39;turbolinks:load&#39;, () =&gt; {<br> const app = new Vue({<br>   el: &#39;[data-behavior=&quot;vue&quot;]&#39;<br> })<br>})</pre><p>And finally use it on our view:</p><pre>/* new.html.erb */<br>&lt;login :token=&quot;&lt;%= form_authenticity_token.to_json %&gt;&quot; :action=&quot;&lt;%= user_session_path.to_json %&gt;&quot;&gt;&lt;/login&gt;</pre><p>We are passing our csrf token directly to our component. Our form is fine but we need styling for our inputs, let&#39;s add it (dont forget to rename it to scss, it is our main application on app/assets/stylesheets):</p><pre>@charset &quot;utf-8&quot;;<br><br>// Material design input<br>.material-input {<br>  label {<br>    color: #3490dc;<br>    left:5px;<br>    top:10px;<br>    transition:0.2s ease all;<br>  }<br>  input {<br>    &amp;:focus ~ label, &amp;:valid ~ label     {<br>      top:-20px;<br>      font-size: 1rem;<br>      color: #3490dc;<br>    }<br>    &amp;:focus ~ .bar:before, &amp;:focus ~ .bar:after {<br>      width:50%;<br>    }<br>    &amp;[type=submit]:disabled {<br>      background: grey;<br>    }<br>  }<br>  .bar {<br>    &amp;:before, &amp;:after   {<br>      content: &#39;&#39;;<br>      height: 3px;<br>      width: 0;<br>      bottom: 0px;<br>      position: absolute;<br>      background: #3490dc;<br>      transition:0.2s ease all;<br>    }<br>    &amp;:before {<br>      left:50%;<br>    }<br>    &amp;:after {<br>      right:50%;<br>    }<br>    &amp;.error:before, &amp;.error:after   {<br>      background: red;<br>      width:50%;<br>    }<br>  }<br>  .error {<br>    color: red;<br>    font-size: 1rem;<br>  }<br>}</pre><p>Most of the time you would need to run rails server and web pack dev server separately, to use only one terminal for it, I use foreman as the tool to manage it:</p><pre>gem install foreman</pre><p>Let&#39;s create our procfile and run it:</p><pre>web: rails s<br>webpack: bin/webpack-dev-server</pre><pre>foreman start</pre><p>That’s all!</p><p>This way we are passing the CSRF token and the action path, pretty easy without making a separate API and making an extra call or disabling CSRF protection.</p><p>Hope this helps in your future endeavors!</p><p>[1] <a href="https://gorails.com/series/using-vuejs-with-rails">https://gorails.com/series/using-vuejs-with-rails</a></p><p>Powered by <a href="https://www.tektonlabs.com/">Tekton Labs</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33af435ac763" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tekton-labs/getting-started-with-rails-vue-server-side-rendering-33af435ac763">Getting started with Rails + Vue: Server-side rendering</a> was originally published in <a href="https://medium.com/tekton-labs">Tekton Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Red de Bibliotecas Universitarias]]></title>
            <link>https://medium.com/@playlights/red-de-bibliotecas-universitarias-3ec221a537d7?source=rss-740699c2e91e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ec221a537d7</guid>
            <category><![CDATA[educación]]></category>
            <category><![CDATA[internet]]></category>
            <dc:creator><![CDATA[Jordano Moscoso]]></dc:creator>
            <pubDate>Thu, 20 Aug 2015 16:33:43 GMT</pubDate>
            <atom:updated>2015-08-20T16:34:21.752Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wLhp1AizdcH3lOPx6Dz5vg.png" /></figure><h4>Introducción</h4><p>El existencialismo plantea que toda la vida es una constante decisión, debemos elegir en cada momento de nuestras vidas, y las decisiones claramente deben estar basadas en información, la información se produce cuando logramos interpretar datos, es decir, señales de nuestro entorno, si combinamos señales atómicas y concluimos algo de ellas, es porque hemos extraído información, luego si nuestro razonamiento es acertado tenemos la capacidad de hacer una, en teoría, buena decisión.</p><p>Por otra parte, la información debe tener una serie de características implícitas para que podemos utilizarla (debe ser fidedigna, a tiempo, etc.), asumiendo cumplidos estos requisitos pasamos a la etapa de la razón en donde podemos transformar esa información en conocimiento y agregar así un ítem más a nuestro saber.</p><h4>Red de Bibliotecas Académicas</h4><p>Las redes de bibliotecas académicas han venido siendo pocas ya que no todas las universidades o centros de investigación quieren prestar sus servicios de informacion para los demás, esto quiere decir que aun hoy en día existe mucha problemática en torno a compartir la información con otras personas.</p><p>Existen varias redes de bibliotecas académicas las cuales de detallan a continuación:</p><ul><li>Triangle Research Libraries Network (TRLN) : Es una organización colaborativa de Duke University, North Carolina State University, y The University of North Carolina at Chapel Hill, la razón es compartir la recursos de informacion de sus bibliotecas de investigación a través de esfuerzos cooperativos para crear conocimiento rico y firme que promuevan la enseñanza en universidades, investigación y misiones de servicio.</li><li>National Network of Libraries of Medicine : Es una organización que promueve el avance del progreso de la medicina y mejorar la salud publica que proveen los profesionales de U.S. con acceso a informacion medica y mejorando el acceso publico a informacion para permitirles saber acerca de las decisiones acerca de su salud.</li><li>Online Computer Library Center (OCLC) : Es una biblioteca cooperativa global que provee servicios de tecnología e investigaciones y finalmente una comunidad de bibliotecas. Son bibliotecarios, expertos en tecnología, investigadores, líderes y aprendices. Con cientos de bibliotecas en mas de 100 países.</li></ul><p>La Universidad de Ciencias Aplicadas(Perú) ha ingresado recientemente a la OCLC lo cual nos demuestra cual es la visión de las autoridades y dirigentes de esta universidad.</p><h4>Importancia de la Diversidad de la Información</h4><p>El Acceso a múltiples fuentes de información, característica esencial de Internet, es a la vez más urgente y más difícil de lograr cuando se trata de noticias, de actualidad.</p><p>Para nadie es un misterio que en Estados Unidos, con la crisis, las ‘divergencias se vuelven discretas’, como dice el periódico The New York Times. Y el problema se extiende al resto del mundo, en donde los medios estadounidenses ejercen una influencia dominante. Una problemática todavía más difícil por la inmensidad de la red y porque los motores de búsqueda más poderosos y conocidos no indexan su contenido todos los días. Y cuando lo hacen, tienden a centrarse en las noticias en inglés.</p><p>El verdadero reto consiste en acceder a fuentes que provienen de periodistas, lenguas y culturas diferentes.</p><h4>Beneficios de las redes de Bibliotecas académicas</h4><ul><li>Los docentes podrían compartir información especializada de sus áreas con sus colegas.</li><li>Los docentes podrían tener nuevas fuentes de información.</li><li>Los docentes podrían aumentar la calidad de su enseñanza.</li><li>Los estudiantes podrían tener una mejor disponibilidad de información.</li><li>Los estudiantes podrían compartir trabajos de otros compañeros peruanos de otras universidades.</li><li>Los investigadores podrían agilizar su proceso de búsqueda de información.</li><li>Los investigadores podrían presentar las investigaciones.</li><li>Las universidades podrían ofrecer mejores servicios académicos.</li><li>Las universidades mejorarían la calidad de su enseñanza.</li></ul><h4>Conclusión</h4><p>Por lo tanto este problema puede generar una gran cantidad de beneficios si es resuelto mediante la solución presentada previamente, sin embargo presenta dificultades para las universidades ya que estas son las que deben gestionar todo el proceso y correr con los gastos que puedan degenerar en su trayecto. A pesar de ello, el tremendo efecto que tendría no solo a las universidades directamente sino a todos los afectos sería muy bueno.</p><h4>Referencias</h4><p>Autor: The Society of College, National and University Libraries, Titulo:”The value of academic libraries”, Año de publicación: 2015. Obtenido de :</p><p><a href="http://www.sconul.ac.uk/page/the-value-of-academic-libraries">http://www.sconul.ac.uk/page/the-value-of-academic-libraries</a></p><p>Autor: Fundación Universia, Titulo:”Biblioteca de la UPC en red de bibliotecas”, Año de publicación: 2007. Obtenido de :</p><p><a href="http://noticias.universia.edu.pe/vida-universitaria/noticia/2007/06/12/747783/biblioteca-upc-red-bibliotecas.html">http://noticias.universia.edu.pe/vida-universitaria/noticia/2007/06/12/747783/biblioteca-upc-red-bibliotecas.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ec221a537d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>