Skip to content

Commit 732a9d9

Browse files
committed
Add circleci
1 parent bade48c commit 732a9d9

File tree

6 files changed

+111
-16
lines changed

6 files changed

+111
-16
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@
3636
#Ignore backup Makefile
3737
*-e
3838
.env
39+
40+
vendor/

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ GEM
7373
execjs
7474
coffee-script-source (1.12.2)
7575
concurrent-ruby (1.1.5)
76-
crass (1.0.4)
76+
crass (1.0.5)
7777
devise (4.7.1)
7878
bcrypt (~> 3.0)
7979
orm_adapter (~> 0.1)

README.md

Lines changed: 84 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,95 @@
1-
# README
1+
# Tutor Virtual
22

3-
This README would normally document whatever steps are necessary to get the
4-
application up and running.
3+
[![Maintainability](https://api.codeclimate.com/v1/badges/ba4ca1e8e93e5cef25d7/maintainability)](https://codeclimate.com/github/ProyectoIntegrador2018/tutor_virtual/maintainability)
54

6-
Things you may want to cover:
5+
El sistema tiene como objetivo el automatizar los procesos que lleva a cabo nuestra cliente, Dora Elizabeth García Olivier, perteneciente del Centro Virtual de Aprendizajes. Dentro de sus actividades que actualmente realiza de manera manual se incluyen el: Dar de alta a alumnos, profesores y directivos asociados al servicio social Aprendizaje Verde.
76

8-
* Ruby version
7+
## Tabla de contenidos
98

10-
* System dependencies
9+
* TBD
1110

12-
* Configuration
11+
## Detalles del Cliente
1312

14-
* Database creation
13+
| Nombre | Email | Rol |
14+
| ------------------- | ------------------- | ---------------- |
15+
| Dora García Olivier | degolivier@itesm.mx | Coordinador CVA |
1516

16-
* Database initialization
1717

18-
* How to run the test suite
18+
## Ambientes del Sistema
1919

20-
* Services (job queues, cache servers, search engines, etc.)
20+
* **Producción** - [TutorVirtual](http://tutorvirtual.herokuapp.com/)
21+
* **Desarrollo** - [Dev-TutorVirtual](http://dev-tutorvirtual.herokuapp.com/)
2122

22-
* Deployment instructions
23+
Equipo: AD 2019
2324

24-
* ...
25+
| Nombre | Email | Rol |
26+
| ------------------ | ------------------ | ------------ |
27+
| Sergio Diaz | a01192313@itesm.mx | Scrum Master |
28+
| Patricio Forbes | A01192455@itesm.mx | PO Proxy |
29+
| Arturo González | A01193188@itesm.mx | Desarrollo |
30+
31+
## Herramientas
32+
33+
Pide acceso a las siguientes herramientas de no ser que no lo tengas:
34+
35+
* [Github repo](https://github.com/ProyectoIntegrador2018/tutor_virtual)
36+
* [Backlog](https://github.com/ProyectoIntegrador2018/tutor_virtual/projects/2)
37+
* [Documentation](https://drive.google.com/drive/folders/16hcLTaW8YtWHzEUo9VfwR-Qjewcsap-G?usp=sharing)
38+
39+
## Configuración del proyecto
40+
41+
### Pre-condiciones
42+
- Install docker and docker-compose.
43+
44+
45+
### Build and Run
46+
47+
EL siguiente comando usa un multi-stage build para usar compilaciones de
48+
varias etapas, y levantar la aplicación con un solo comando:
49+
50+
```
51+
docker-compose up web
52+
```
53+
54+
### Test
55+
56+
EL siguiente comando usa un multi-stage build para usar compilaciones de
57+
varias etapas, y levantar la aplicación en el ambiente de ```test``` con un
58+
solo comando:
59+
60+
```
61+
docker-compose run --rm test bash
62+
```
63+
64+
65+
El comando anterior construirá la imagen si no existe, llamada: `proyecto_integrador / tutor_virtual: development`.
66+
67+
### Debbuging
68+
La estructura del proyecto permite a cualquiera ejecutar fácilmente una consola
69+
de bash para poder ejecutar cualquier tipo de instrucción. Por ejemplo algo como ```rails db:create```, ```rails db:migrate```, o ```rails db:seed```
70+
71+
72+
```
73+
docker-compose run --rm web bash
74+
```
75+
76+
### Pruebas
77+
Si se ejecuta ```rails db:seed```, se agregarán dos usuarios de prueba a la base
78+
de datos. Uno con permisos normales y otro con permisos de administrador.
79+
```
80+
user: user@example.com
81+
password: 123456
82+
83+
user: admin@example.com
84+
password: 123456
85+
86+
```
87+
## Stack Tecnológico
88+
89+
### Librerías Front End:
90+
* Jquery
91+
* CSS
92+
93+
### Librerías Back End:
94+
95+
* Ruby on Rails

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class ApplicationController < ActionController::Base
2-
before_action :require_login
2+
33
private
44

55
def require_login

config/environments/production.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171

7272
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
7373
# the I18n.default_locale when a translation cannot be found).
74-
config.i18n.fallbacks = true
74+
# config.i18n.fallbacks = true
75+
config.i18n.fallbacks = [I18n.default_locale]
7576

7677
# Send deprecation notices to registered listeners.
7778
config.active_support.deprecation = :notify

db/schema.rb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,27 @@
5151
t.index ["student_id", "course_id"], name: "index_courses_students_on_student_id_and_course_id"
5252
end
5353

54+
create_table "preinscritos", force: :cascade do |t|
55+
t.string "nombre", null: false
56+
t.string "apellido_paterno", null: false
57+
t.string "apellido_materno", null: false
58+
t.string "correo_contacto"
59+
t.string "cca"
60+
t.boolean "estatus_user_mensajeria"
61+
t.boolean "estatus_ins_mensajeria"
62+
t.string "fecha_inscripcion"
63+
t.string "genero"
64+
t.string "fecha_nacimieto"
65+
t.string "pais"
66+
t.string "estado"
67+
t.string "ciudad"
68+
t.string "idioma"
69+
t.integer "id_organizacion"
70+
t.string "rol", null: false
71+
t.datetime "created_at", null: false
72+
t.datetime "updated_at", null: false
73+
end
74+
5475
create_table "stakeholders", force: :cascade do |t|
5576
t.string "username"
5677
t.string "internal_password"

0 commit comments

Comments
 (0)