Para instalar Rails me gusta mucho esta http://installrails.com/
Introducción
Qué aprenderás sobre la creación de APIs con Ruby on Rails
Configuración
Proyecto
Cómo crear un proyecto con RoR
Instalación de gemas necesarias
Configurar rspec + factorybot
Hello world (health endpoint)
Casos de uso para nuestra aplicación
Planeando nuestro modelo entidad relación
Crear modelos y validaciones + tests
Implementación de los modelos usando TDD
Listar y mostrar Post: pruebas
Listar y mostrar Post: implementación
Crear y editar POST: pruebas
Crear y editar POST: implementación
Usando ActiveModelSerializer
Filtrar posts - pruebas
Filtrar posts - implementacion
N+1 query problem: explicacion teórica
N+1 query problem: solución
Introducción a la autenticación con Tokens
Autenticación: pruebas del endpoint de detalle (/posts/{id})
Autenticación: generacio de auth token para el usuario
Autenticación: agregando autenticacion al controlador de Post
Autenticación: lógica de update, delete y create del controlador de blogposts
Autenticación: Finalizando pruebas de creación y actualización de blogposts
Probando el API con Postman
Explicación de Caching
Usando Cache para acelerar las búsquedas de posts
Background jobs y ActiveJob (explicación teórica)
Generar Reporte para procesar con ActiveJob
Enviar Reporte usando ActionMailer
Autenticacion con auth0 y JWT
Cierre
Cierre del curso
To start a new Ruby on Rails project, it is crucial to make sure you have all the necessary tools. This process will not only help avoid future technical problems, but will also ensure a smooth and efficient workflow. Here's how to verify that you have everything you need installed on your system.
Ruby is the core of any application developed with Ruby on Rails. Therefore, making sure that it is installed correctly on your machine is the first step to start any project.
Access the terminal: approximately all configurations are done from the command line.
Check the Ruby version: To find out the version of Ruby installed, enter the following command in the terminal:
ruby --version
The output will tell you which version is installed. An example might be "Ruby 2.5.1". It is recommended to use version 2.5 with any subversion (Minor) for this specific project.
Effective database management is essential in any web application.
Rails is the framework that allows you to build web applications in an agile and structured way, so it is essential to have it configured correctly.
Install Rails: If you don't have Rails installed, you can run the following command in your terminal:
gem install rails -v 5.2.1
This will install version 5.2.1, which is the recommended version for this guide.
Starting a project requires initial commits from the development environment. However, once this process is complete, you will be ready to dive into the development of your application with all the tools configured and optimized. By familiarizing yourself with these steps, you ensure that any technical hurdles related to configuration are minimized, allowing you to focus more time and energy on the creative component of Ruby on Rails web development. If you are on the road to learning Ruby on Rails, always stay motivated, every line of code is one step closer to becoming an expert. Keep going!
Contributions 7
Questions 0
Para instalar Rails me gusta mucho esta http://installrails.com/
Esta guia me fue muy util para instalar Ruby on Rails en ubuntu 18.04 https://gorails.com/setup/ubuntu/18.04
Para instalar postgres como base de datos desde un contenedor, con el usuario dev
y la contraseña: developer
se puede hacer de la siguiente manera:
docker pull docker.io/postgres:11
docker run --name postgres-platzi -p 127.0.0.1:5432:5432 -e POSTGRES_USER=dev -e POSTGRES_PASSWORD=developer -d docker.io/postgres:11
¡Listo!
Hola Iris, Depende de que OS uses (MacOS, Windows, Linux, etc).
Instalacion de rails -> gem install rails -v 5.2.1
Como instalo sqlite3???
Hola a todos, estoy intentando crear un nuevo proyecto y me sale es siguiente error.
rails aborted!
LoadError: libffi.so.7: cannot open shared object file: No such file or directory - /home/rai/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/ffi-1.13.1/lib/ffi_c.so
Want to see more contributions, questions and answers from the community?