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-heroku-token-oauth-alex-moi

v0.0.13

Published

Plugin deploy heroku oauth

Downloads

10

Readme

Sistemas y Tecnologías Web. Gitbook Start Acceso Restringido. Plugins

Este paquete es un plugin del paquete gitbook-start-alex-moi-nitesh. Ofrece la posibilidad de desplegar en heroku nuestra aplicación a través de la API de Heroku y utilizando autenticación a través de GitHub.

Instalación

Debemos tener instalado el paquete principal en global. Con esto hecho no es necesario instalar el paquete plugin heroku puesto que al ejecutar la aplicación de la forma que se expone a continuación, ésta lo instala por nosotros. Por tanto, ejecutamos desde el directorio de nuestro gitbook:

gitbook-start-alex-moi-nitesh -d heroku-token-oauth

Para más información sobre las opciones que permite el paquete principal, acuda a su documentación en gitbook-start-alex-moi-nitesh.

Descripción del paquete

El paquete cuenta con dos métodos, intialize() y deploy(). El primero, al ser invocado por el paquete principal gitbook-start-alex-moi-nitesh añadirá una tarea gulp al gulpfile.js de la aplicación. Esta tarea se llamará deploy-heroku-oauth e invocará el método deploy() que se encargará de desplegar la aplicación en heroku.

Funcionamiento

Después de haber ejecutado el comando del paso de Instalación, se instalará el paquete gitbook-start-heroku-token-oauth-alex-moi automaticamente y ya podremos desplegar en heroku. Es recomendable, que previamente haya instalado el paquete gitbook-start-github-alex-moi puesto que le creará el repositorio con un book automáticamente. Más información sobre este paquete en este enlace paquete github-alex-moi

Datos a tener encuenta

Durante el proceso de instalación gitbook-start-alex-moi-nitesh -d heroku-token-oauth , nos pedirá por pantalla los siguientes datos:

  • nombre de la app
  • token del usuario de heroku
  • repositorio de Github formato http
  • id_client
  • secret_client
  • organizacion

El token de heroku lo puede encontrar en su cuenta personal de heroku (Account->Baje hasta el final->Api Key)

Para obtener el id_client y el secret_client, deberá crear en github una aplicación. Para ello, acuda a settings en su cuenta de Github, en la parte izquierda por el final encontraremos OAuth applications, pinche ahí y podremos crear una nueva aplicación. Una vez vaya a crear una aplicación, siga los siguientes pasos:

  1. Ponga un nombre a la aplicación
  2. Ponga en Homepage URL una dirección igual a esta pero con el nombre de su app: https://nombre_de_su_app.herokuapp.com/login
  3. Añada una descripción si quiere
  4. Ponga en Authorization callback URL una dirección igual a esta pero con el nombre de su app: https://nombre_de_su_app.herokuapp.com/respuesta
  5. Registre su aplicación

Después de ello, podremos encontrar nuestro id_client y nuestro secret_client.

En organizacion introduzca la organizacion con la cual va a controlar el acceso a su book.

Posteriormente siga los siguientes pasos:

  1. heroku git:remote -a <nombre_app>
  2. gulp deploy-heroku-oauth
  3. Acuda a la url de la aplicación: https://nombre_app.herokuapp.com/

##Versiones de los paquetes

  • Paquete principal gitbook-start-alex-moi-nitesh Version: v1.2.56
  • Paquete gitbook-start-heroku-token-oauth-alex-moi Version: v0.0.12

Enlaces importantes

Autores