-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inicio del proyecto y montar plantilla
- Loading branch information
0 parents
commit 227c778
Showing
454 changed files
with
120,546 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
DATABASE_HOST="localhost" | ||
DATABASE_USERNAME="postgres" | ||
DATABASE_PASSWORD="123456789" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# See https://help.github.com/articles/ignoring-files for more about ignoring files. | ||
# | ||
# If you find yourself ignoring temporary files generated by your text editor | ||
# or operating system, you probably want to add a global ignore instead: | ||
# git config --global core.excludesfile '~/.gitignore_global' | ||
|
||
# Ignore bundler config. | ||
/.bundle | ||
|
||
# Ignore all logfiles and tempfiles. | ||
/log/* | ||
/tmp/* | ||
!/log/.keep | ||
!/tmp/.keep | ||
|
||
|
||
/node_modules | ||
/yarn-error.log | ||
|
||
/public/assets | ||
.byebug_history | ||
|
||
# Ignore master key for decrypting credentials and more. | ||
/config/master.key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.5.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
source 'https://rubygems.org' | ||
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | ||
|
||
ruby '2.5.3' | ||
gem 'rails', '~> 5.2.2' | ||
gem 'puma', '~> 3.11' | ||
gem 'sass-rails', '~> 5.0' | ||
gem 'uglifier', '>= 1.3.0' | ||
gem 'coffee-rails', '~> 4.2' | ||
gem 'turbolinks', '~> 5' | ||
gem 'jbuilder', '~> 2.5' | ||
gem 'bootsnap', '>= 1.1.0', require: false | ||
gem 'pg' # Base de datos | ||
gem 'whenever' # Cron Jobs para correr tareas a determinada hora | ||
gem 'sidekiq' # Manejo de tareas en segundo plano | ||
gem 'redis' # Base de datos en memoria para guardar tareas en segundo plano | ||
gem 'devise' # Manejo de accesos de usuarios | ||
gem 'cancancan' # Manejo de permisos | ||
gem 'slim-rails' # Hacer HTML mas legible | ||
gem 'dotenv' # Gema para manejar claves y variables de la maquina | ||
gem 'aasm' # Gema para manejar estados | ||
|
||
# Gemas solo para usar en la maquina local | ||
group :development, :test do | ||
gem 'pry-rails' # Debug permite hacer paradas en el codigo y correr lineas de comando | ||
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] | ||
gem 'letter_opener' # Probar correos en maquina local | ||
end | ||
|
||
group :development do | ||
gem 'web-console', '>= 3.3.0' | ||
gem 'listen', '>= 3.0.5', '< 3.2' | ||
gem 'spring' | ||
gem 'spring-watcher-listen', '~> 2.0.0' | ||
gem 'erd' # Permite generar un diagrama de la base de datos | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,261 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
aasm (5.0.1) | ||
concurrent-ruby (~> 1.0) | ||
actioncable (5.2.2) | ||
actionpack (= 5.2.2) | ||
nio4r (~> 2.0) | ||
websocket-driver (>= 0.6.1) | ||
actionmailer (5.2.2) | ||
actionpack (= 5.2.2) | ||
actionview (= 5.2.2) | ||
activejob (= 5.2.2) | ||
mail (~> 2.5, >= 2.5.4) | ||
rails-dom-testing (~> 2.0) | ||
actionpack (5.2.2) | ||
actionview (= 5.2.2) | ||
activesupport (= 5.2.2) | ||
rack (~> 2.0) | ||
rack-test (>= 0.6.3) | ||
rails-dom-testing (~> 2.0) | ||
rails-html-sanitizer (~> 1.0, >= 1.0.2) | ||
actionview (5.2.2) | ||
activesupport (= 5.2.2) | ||
builder (~> 3.1) | ||
erubi (~> 1.4) | ||
rails-dom-testing (~> 2.0) | ||
rails-html-sanitizer (~> 1.0, >= 1.0.3) | ||
activejob (5.2.2) | ||
activesupport (= 5.2.2) | ||
globalid (>= 0.3.6) | ||
activemodel (5.2.2) | ||
activesupport (= 5.2.2) | ||
activerecord (5.2.2) | ||
activemodel (= 5.2.2) | ||
activesupport (= 5.2.2) | ||
arel (>= 9.0) | ||
activestorage (5.2.2) | ||
actionpack (= 5.2.2) | ||
activerecord (= 5.2.2) | ||
marcel (~> 0.3.1) | ||
activesupport (5.2.2) | ||
concurrent-ruby (~> 1.0, >= 1.0.2) | ||
i18n (>= 0.7, < 2) | ||
minitest (~> 5.1) | ||
tzinfo (~> 1.1) | ||
addressable (2.6.0) | ||
public_suffix (>= 2.0.2, < 4.0) | ||
arel (9.0.0) | ||
bcrypt (3.1.12) | ||
bindex (0.5.0) | ||
bootsnap (1.3.2) | ||
msgpack (~> 1.0) | ||
builder (3.2.3) | ||
byebug (10.0.2) | ||
cancancan (2.3.0) | ||
choice (0.2.0) | ||
chronic (0.10.2) | ||
coderay (1.1.2) | ||
coffee-rails (4.2.2) | ||
coffee-script (>= 2.2.0) | ||
railties (>= 4.0.0) | ||
coffee-script (2.4.1) | ||
coffee-script-source | ||
execjs | ||
coffee-script-source (1.12.2) | ||
concurrent-ruby (1.1.4) | ||
connection_pool (2.2.2) | ||
crass (1.0.4) | ||
devise (4.5.0) | ||
bcrypt (~> 3.0) | ||
orm_adapter (~> 0.1) | ||
railties (>= 4.1.0, < 6.0) | ||
responders | ||
warden (~> 1.2.3) | ||
dotenv (2.6.0) | ||
erd (0.6.3) | ||
nokogiri | ||
rails-erd (>= 0.4.5) | ||
erubi (1.8.0) | ||
execjs (2.7.0) | ||
ffi (1.10.0) | ||
globalid (0.4.2) | ||
activesupport (>= 4.2.0) | ||
i18n (1.5.1) | ||
concurrent-ruby (~> 1.0) | ||
jbuilder (2.8.0) | ||
activesupport (>= 4.2.0) | ||
multi_json (>= 1.2) | ||
launchy (2.4.3) | ||
addressable (~> 2.3) | ||
letter_opener (1.7.0) | ||
launchy (~> 2.2) | ||
listen (3.1.5) | ||
rb-fsevent (~> 0.9, >= 0.9.4) | ||
rb-inotify (~> 0.9, >= 0.9.7) | ||
ruby_dep (~> 1.2) | ||
loofah (2.2.3) | ||
crass (~> 1.0.2) | ||
nokogiri (>= 1.5.9) | ||
mail (2.7.1) | ||
mini_mime (>= 0.1.1) | ||
marcel (0.3.3) | ||
mimemagic (~> 0.3.2) | ||
method_source (0.9.2) | ||
mimemagic (0.3.3) | ||
mini_mime (1.0.1) | ||
mini_portile2 (2.4.0) | ||
minitest (5.11.3) | ||
msgpack (1.2.6) | ||
multi_json (1.13.1) | ||
nio4r (2.3.1) | ||
nokogiri (1.10.1) | ||
mini_portile2 (~> 2.4.0) | ||
orm_adapter (0.5.0) | ||
pg (1.1.4) | ||
pry (0.12.2) | ||
coderay (~> 1.1.0) | ||
method_source (~> 0.9.0) | ||
pry-rails (0.3.9) | ||
pry (>= 0.10.4) | ||
public_suffix (3.0.3) | ||
puma (3.12.0) | ||
rack (2.0.6) | ||
rack-protection (2.0.5) | ||
rack | ||
rack-test (1.1.0) | ||
rack (>= 1.0, < 3) | ||
rails (5.2.2) | ||
actioncable (= 5.2.2) | ||
actionmailer (= 5.2.2) | ||
actionpack (= 5.2.2) | ||
actionview (= 5.2.2) | ||
activejob (= 5.2.2) | ||
activemodel (= 5.2.2) | ||
activerecord (= 5.2.2) | ||
activestorage (= 5.2.2) | ||
activesupport (= 5.2.2) | ||
bundler (>= 1.3.0) | ||
railties (= 5.2.2) | ||
sprockets-rails (>= 2.0.0) | ||
rails-dom-testing (2.0.3) | ||
activesupport (>= 4.2.0) | ||
nokogiri (>= 1.6) | ||
rails-erd (1.5.2) | ||
activerecord (>= 3.2) | ||
activesupport (>= 3.2) | ||
choice (~> 0.2.0) | ||
ruby-graphviz (~> 1.2) | ||
rails-html-sanitizer (1.0.4) | ||
loofah (~> 2.2, >= 2.2.2) | ||
railties (5.2.2) | ||
actionpack (= 5.2.2) | ||
activesupport (= 5.2.2) | ||
method_source | ||
rake (>= 0.8.7) | ||
thor (>= 0.19.0, < 2.0) | ||
rake (12.3.2) | ||
rb-fsevent (0.10.3) | ||
rb-inotify (0.10.0) | ||
ffi (~> 1.0) | ||
redis (4.1.0) | ||
responders (2.4.1) | ||
actionpack (>= 4.2.0, < 6.0) | ||
railties (>= 4.2.0, < 6.0) | ||
ruby-graphviz (1.2.4) | ||
ruby_dep (1.5.0) | ||
sass (3.7.3) | ||
sass-listen (~> 4.0.0) | ||
sass-listen (4.0.0) | ||
rb-fsevent (~> 0.9, >= 0.9.4) | ||
rb-inotify (~> 0.9, >= 0.9.7) | ||
sass-rails (5.0.7) | ||
railties (>= 4.0.0, < 6) | ||
sass (~> 3.1) | ||
sprockets (>= 2.8, < 4.0) | ||
sprockets-rails (>= 2.0, < 4.0) | ||
tilt (>= 1.1, < 3) | ||
sidekiq (5.2.5) | ||
connection_pool (~> 2.2, >= 2.2.2) | ||
rack (>= 1.5.0) | ||
rack-protection (>= 1.5.0) | ||
redis (>= 3.3.5, < 5) | ||
slim (4.0.1) | ||
temple (>= 0.7.6, < 0.9) | ||
tilt (>= 2.0.6, < 2.1) | ||
slim-rails (3.2.0) | ||
actionpack (>= 3.1) | ||
railties (>= 3.1) | ||
slim (>= 3.0, < 5.0) | ||
spring (2.0.2) | ||
activesupport (>= 4.2) | ||
spring-watcher-listen (2.0.1) | ||
listen (>= 2.7, < 4.0) | ||
spring (>= 1.2, < 3.0) | ||
sprockets (3.7.2) | ||
concurrent-ruby (~> 1.0) | ||
rack (> 1, < 3) | ||
sprockets-rails (3.2.1) | ||
actionpack (>= 4.0) | ||
activesupport (>= 4.0) | ||
sprockets (>= 3.0.0) | ||
temple (0.8.0) | ||
thor (0.20.3) | ||
thread_safe (0.3.6) | ||
tilt (2.0.9) | ||
turbolinks (5.2.0) | ||
turbolinks-source (~> 5.2) | ||
turbolinks-source (5.2.0) | ||
tzinfo (1.2.5) | ||
thread_safe (~> 0.1) | ||
uglifier (4.1.20) | ||
execjs (>= 0.3.0, < 3) | ||
warden (1.2.8) | ||
rack (>= 2.0.6) | ||
web-console (3.7.0) | ||
actionview (>= 5.0) | ||
activemodel (>= 5.0) | ||
bindex (>= 0.4.0) | ||
railties (>= 5.0) | ||
websocket-driver (0.7.0) | ||
websocket-extensions (>= 0.1.0) | ||
websocket-extensions (0.1.3) | ||
whenever (0.10.0) | ||
chronic (>= 0.6.3) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
aasm | ||
bootsnap (>= 1.1.0) | ||
byebug | ||
cancancan | ||
coffee-rails (~> 4.2) | ||
devise | ||
dotenv | ||
erd | ||
jbuilder (~> 2.5) | ||
letter_opener | ||
listen (>= 3.0.5, < 3.2) | ||
pg | ||
pry-rails | ||
puma (~> 3.11) | ||
rails (~> 5.2.2) | ||
redis | ||
sass-rails (~> 5.0) | ||
sidekiq | ||
slim-rails | ||
spring | ||
spring-watcher-listen (~> 2.0.0) | ||
turbolinks (~> 5) | ||
uglifier (>= 1.3.0) | ||
web-console (>= 3.3.0) | ||
whenever | ||
|
||
RUBY VERSION | ||
ruby 2.5.3p105 | ||
|
||
BUNDLED WITH | ||
1.17.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# JPIR | ||
## Sobre el proyecto | ||
|
||
## Versiones y dependencias | ||
|
||
## Estructura de los directorios | ||
|
||
- El archivo '.env' se utiliza para definir variables de enviroment, este no debe ser subido al repositorio o compartido sin autorizacion, contiene claves privadas. | ||
- Dentro de la carpeta app se encuentra toda la logica propia del proyecto como son los modelos, vistas, controladores, estilos, javascripts y helpers | ||
- Vendor es una carpeta especial que contiene el codigo que no es propio, osea las librerias de terceros como boostrap, jquery entre otras. | ||
|
||
## Notas importantes | ||
|
||
## Sobre la base de datos | ||
|
||
## Comandos mas usados | ||
|
||
```bash | ||
# Este comando crea una migracion y un modelo asociado a esta | ||
# La migracion indica un cambio en la base de datos. | ||
rails g model <nombre_del_modelo> <campo1>:<tipo_de_dato> <campo2>:<tipo_de_dato> | ||
``` | ||
|
||
## Sobre el servidor de produccion | ||
|
||
## Como probar los correos | ||
|
||
## Sobre la plantilla | ||
|
||
- Utilizamos slim para hacer html mas bonito y mas facil de leer | ||
|
||
## Seguridad | ||
|
||
- Utilizamos a Devise para manejar la parte del acceso al sistema, controla el registro, recuperacion de clave, cambio y sesiones. | ||
- AASM es una gema para manejar la transicion entre un estado y otro, con esta colocamos las acciones que se deben dar para cambiar los estados y de que estado a cual se puede cambiar. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Add your own tasks in files placed in lib/tasks ending in .rake, | ||
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | ||
|
||
require_relative 'config/application' | ||
|
||
Rails.application.load_tasks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
//= link_tree ../images | ||
//= link_directory ../javascripts .js | ||
//= link_directory ../stylesheets .css |
Empty file.
Oops, something went wrong.