Skip to content

mrosso10/eldesasosiego

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI Maintainability Test Coverage

eldesasosiego

Plantilla para crear una app Rails.

Creada con https://github.com/mattbrictson/rails-template

Pre-requisitos

This project requires:

  • Ruby 2.7.2, preferably managed using rbenv
  • libmagic-dev (en Ubuntu sudo apt install -y libmagic-dev)
  • Node.js >= 10 (Instalar en Ubuntu)
  • Chromedriver for Capybara testing
  • PostgreSQL must be installed and accepting connections
  • Redis must be installed and running on localhost with the default port

Snippet para tuitear

client = Twitter::REST::Client.new do |config|
  config.consumer_key        = ENV['TWITTER_KEY']
  config.consumer_secret     = ENV['TWITTER_SECRET']
  config.access_token        = ENV['TWITTER_ACCESS_TOKEN']
  config.access_token_secret = ENV['TWITTER_ACCESS_TOKEN_SECRET']
end

client.update('aaay ay ay')

Development

Setup

Crear rol en Postgres

  1. Ingresar a la consola de postgres:
sudo -u postgres psql template1
  1. Crear el rol
create role eldesasosiego password 'eldesasosiego' login superuser;
  1. Ejecutar el script bin/setup. This script will:
  • Check you have the required Ruby version
  • Install dependencies using Bundler
  • Create a .env.development file
  • Create, migrate, and seed the database

Testear y ejecutar

  1. Instalar overcommit: gem install overcommit
  2. Correr los linters con overcommit -r
  3. Correr los tests con bundle exec rspec
  4. Instalar foreman: gem install foreman
  5. Levantar el servidor local con foreman start

Acceder a la app en http://localhost:3000/.

Deployment

Ensure the following environment variables are set in the deployment environment:

  • REDIS_URL
  • SECRET_KEY_BASE

Optionally:

  • BASIC_AUTH_PASSWORD
  • BASIC_AUTH_USERNAME
  • POSTMARK_API_KEY
  • RAILS_FORCE_SSL
  • RAILS_HOSTNAME
  • RAILS_LOG_TO_STDOUT
  • RAILS_MAX_THREADS
  • RAILS_SERVE_STATIC_FILES
  • SIDEKIQ_CONCURRENCY
  • SIDEKIQ_WEB_PASSWORD
  • SIDEKIQ_WEB_USERNAME
  • WEB_CONCURRENCY

About

el bot del desasosiego

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published