Giter Site home page Giter Site logo

contador-de-votos's Introduction

contador-de-votos

Contador de votos en base a los datos cargados en una planilla de Google Sheets

Ejecución local

  • Instalar node (se desarrolló con la versión 8.11.3 LTS)
  • Exportar las variables de ambiente TELEGRAM_TOKEN, ID_PLANILLA y GOOGLE_API_KEY
  • Ejecutar
    npm start
  • La aplicación queda levantada en localhost:3000

Configuración en now

Se deben agregar las variables de ambiente como secrets de now

node_modules/.bin/now secrets add google-api-key "<API_KEY>"
node_modules/.bin/now secrets add id-planilla "<ID_PLANILLA>"
node_modules/.bin/now secrets add telegram-token "<TELEGRAM_TOKEN>"

Estas variables deben estar exportadas en el archivo now.json

Deploy en now

  1. Eliminar el deploy anterior, si existe
    1. Buscar la url
    node_modules/.bin/now ls
    1. Eliminar el deploy
    node_modules/.bin/now rm <url>
  2. Subir la nueva versión
    node_modules/.bin/now
  3. Agregar un alias
    node_modules/.bin/now alias <nueva_url> contador-de-votos

Ver los logs

  1. Buscar la url
node_modules/.bin/now ls
  1. Ver los logs
node_modules/.bin/now logs -f <url>

contador-de-votos's People

Contributors

srisaro avatar nickrisaro avatar naysolange avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.