npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gitbook-start-iaas-ull-es-aitor-joshua-samuel

v2.2.0

Published

A plugin for iaas.ull.es deploys

Downloads

74

Readme

#Práctica: Plugin para despliegues en IAAS-ULL-ES

##¿Qué hace el módulo?

Este plugin extiende el paquete gitbook-start con un nuevo plugin que permita realizar el despliegue en iaas-ull-es con un simple gulp deploy-iaas-ull-es. Puede encontrar el paquete gitbook-start y el otro plugin para heroku en la zona de Repositorio.

#####Instalación:

npm install  gitbook-start-iaas-ull-es-aitor-joshua-samuel

Para añadir el plugin al paquete gitbook-start ejecutar el siguiente comando:

gitbook-start -d iaas-ull-es --> Añades el plugin en gitbook-start

#####Instrucciones:

  • Al ejecutar el comando anterior, se te genera lo esencial para desplegar la aplicación en iaas.ull.es
  • Para ello, debemos tener configurado la pareja de claves pública y privada:
  • Primero vamos a comprobar si ya tenemos generada la pareja de claves pública y privada, hacemos cd ~/.ssh en el cliente.
  • Si existe el directorio, pasa al siguiente paso. Si no existe, ejecuta el comando ssh-keygen -t rsa y le da enter a todo.
  • Una vez creado, hacemos cd ~/.ssh y ejecutamos cat id_rsa.pub, esa es nuestra clave pública la copiamos entera.
  • En el cliente, creamos el directorio config con el siguiente formato:
Host nombre -> Nombre que le queremos poner al host remoto.
HostName IP -> IP del remoto
user usuario -> Usuario del remoto
port 2121 -> Puerto al que queremos conectarnos del remoto.
  • Seguidamente nos conectamos al host remoto y nos movemos al directorio .ssh y creamos el fichero authorized_keys, y pegue la clave pública del cliente.
  • Ahora, añada la ip y el path donde se encuenta el libro a desplegar:
  "iaasip": "0.0.0.0",
  "iaaspath": "src/mi_proyecto"
Github
  • En iaas-ull-es no funciona bien.
  • Para el despliegue github debe rellenar el fichero userData.json con los siguientes campos:
  1. La organización de acceso.
  2. El token de github con los permisos necesarios.
  3. La url callback de su github app.
  4. El Client id de su github app.
  5. El Client secret de su github app.
{
    "org": "myOrg",
    "token": "myToken",
    "url": "myCallbackUrl",
    "idClient": "myClientID",
    "secretClient": "mySecretClient"
}


##### Despliegue Local
* Para el caso del depsliegue local, deberá añadir su token de dropbox y el link del archivo a descargar.
* Suba previamente el archivo ```users.json``` a [Dropbox](https://dropbox.com)
* [Obtener token de dropbox](https://dropbox.github.io/dropbox-api-v2-explorer/#auth_token/revoke)
* Rellene la URL para compartir el fichero y el token de Dropbox.

```json
{
    "url": "myUrl",
    "token": "myToken"
}
Despliegue con Base de Datos.
  • Instalar gitbook-start-aitor-joshua-samuel y desplegar con el comando gitbook-start -n milibro
  • Desplegar el plugin iaas-ull-es con gitbook-start -d iaas-ull-es -p dbPara desplegar iaas con la estrategia Local con base de datos.
  • Ejecutar gitbook-build para construir los HTML
  • Conectarse a mysql mediante el comando mysql -u root -p Con esto arrancamos con el usuario root y nos pide que introduzcamos una contraseña para la base de datos.
  • Rellenamos el fichero que se encuentra en db/dataBase.json:
{
  "dbHost": "localhost",
  "dbUser": "root",
  "dbPassword": "mypassword",
  "dbDatabase": "sytw"
}
  • Dentro de mysql ejecutamos source usuario.sql y creamos la base de datos sytw y la tabla login.
  • Ejecutamos node server.js.

####Despliegue

  • Una vez configurado todo, se puede actualizar el libro en iaas.ull.es con la siguente tarea de Gulp:
gulp deploy-iaas --> Depsliega tu libro en iaas.ull.es

##Autores

  1. Aitor Bernal Falcón
  2. Samuel Ramos Barroso
  3. Joshua Pérez García

##Repositorio

##Enlaces de interés