After learning Progate, I tried to make an SNS application using Rails in the local environment

Overview

Now that I've learned Progate's Rails course, can I make the same on my PC (local environment)? I thought, I made an SNS application that also serves as a review and output.

Development environment

macOS catalina version 10.15.6

Rails 6.0.3.2

Local development environment → Deploy to heroku (make it visible to everyone)

Completed "Heart-warming chat" https://honobonochat.herokuapp.com/ I changed the name, but the contents are almost Progate's Tweet app (laugh)

Difficult & caught points

・ zsh: command not found and does not accept any command

【problem】

I enter various rails commands to mess with the database in the terminal, but I encounter a phenomenon that only zsh: command not found appears

【Solution】

I just forgot to type rails console ...

Also, since you can't hit rails s during rails console, you need to close the rails console with "exit" ...

I didn't know that I had to close the server every time to operate the terminal.

(In Progate, I used to operate the rails console normally with the server open with rails s)

Forgot to type the usual phrase

【problem】

An error occurs when deploying to heroku or changing a gem.

【Solution】

I forgot to type rails db: migrate, or I forgot to type bundle install.

→ There was a scene where I was distracted by the MVC structure and forgot the roles of the database and table, and I felt that a migration error had occurred.

I posted an image but it disappears

【problem】

Even if I post an image, I encountered a phenomenon that it disappears after a certain period of time for some reason

[Cause]

In the free version of heroku, it turned out that the image is automatically deleted after a certain period of time. This can't be helped.

Impressions I was impressed that "what I was doing with Progate can be done with my own PC!"

I think it was a good experience because I had to start building the environment from scratch, even though it was local.

What I did was almost a sutra copy, but it took longer than I expected to complete due to a series of errors that could not have occurred with Progate.

I've heard stories in many places that "engineers spend more time googled than writing code," but I realized that was the case.

I googled with the thought that "If you get stuck, you should google, there must be a predecessor who was in trouble with the same thing."

Reference page I referred to the following article.

-When trying to deploy to heroku from a local environment https://qiita.com/Kohei_Kishimoto0214/items/d4a4ca13d4a8ab11b3f8

Recommended Posts

After learning Progate, I tried to make an SNS application using Rails in the local environment
I tried to make an application in 3 months from inexperienced
How to install Docker in the local environment of an existing Rails application [Rails 6 / MySQL 8]
I tried to develop the cache function of Application Container Cloud Service in the local environment
I tried to organize the session in Rails
I tried to make the "Select File" button of the sample application created in the Rails tutorial cool
I tried to make a talk application in Java using AI "A3RT"
I tried to develop an application in 2 languages
Rails6 I tried to introduce Docker to an existing application
I tried to build an environment using Docker (beginner)
I stumbled when I tried using neo4j in the jenv environment, so make a note
I tried using Hotwire to make Rails 6.1 scaffold a SPA
I tried to build the environment little by little using docker
[Rails] I tried deleting the application
After posting an article with Rails Simple Calendar, I want to reflect it in the calendar.
I tried to sort the data in descending order, ascending order / Rails
I tried to build a simple application using Dockder + Rails Scaffold
I tried to make an Android application with MVC now (Java)
I tried using Docker because I don't want to pollute the local environment in Microsoft Teams tab development of MS Learn
I tried to make it an arbitrary URL using routing nesting
[Programming beginner] What to do when rails s becomes an error in the local development environment
How to make an application with ruby on rails (assuming that the environment has been built)
I tried to make a simple face recognition Android application using OpenCV
I tried to summarize the stumbling points when developing an Android application
I tried to build a Firebase application development environment with Docker in 2020
I tried to make full use of the CPU core in Ruby
[After learning Progate] I tried to summarize form_with while comparing with form_tag
I tried to make a machine learning application with Dash (+ Docker) part1 ~ Environment construction and operation check ~
I tried to make a sample program using the problem of database specialist in Domain Driven Design
[Rails] I tried to raise the Rails version from 5.0 to 5.2
[Rails] Run LINEBot in local environment using ngrok
I tried to implement deep learning in Java
I tried to make a machine learning application with Dash (+ Docker) part3 ~ Practice ~
I want to create the strongest local development environment using VSCode Remote Containers
About the case where "Docker" freeter tried to put Docker in the existing Rails application
[Rails] I want to reset everything because the data in the local environment is strange! What to do before that
[Rails] How to connect to an external API using HTTP Client (I tried connecting to Qiita API)
I tried to organize the cases used in programming
[Rails] How to delete production environment MySQL data after putting it in the development environment
I tried using the Migration Toolkit for Application Binaries
I tried to make a login function in Java
I tried using an extended for statement in Java
SSL in the local environment of Docker / Rails / puma
I tried to implement the Euclidean algorithm in Java
[Rails] How to display an image in the view
I tried to create an Amazon echo skill that teaches scraped information in Java using the Alexa Skills Kit (ASK)
I built an environment to execute unit tests using Oracle database (oracle12c) on the Docker in Docker (dind) image of GitLab-CI.
[Rails] What to do if you accidentally install bundle in the production environment in your local environment
I tried to make the sample application into a microservice according to the idea of the book "Microservice Architecture".
I tried to touch the asset management application using the emulator of the distributed ledger Scalar DLT
[Rails 6.0, Docker] I tried to summarize the Docker environment construction and commands necessary to create a portfolio
I tried to make an introduction to PHP + MySQL with Docker
I tried to introduce Bootstrap 4 to the Rails 6 app [for beginners]
Add an icon to the header link using Rails fontawesome
[Rails] I tried using the button_to method for the first time
I tried to make Venn diagram an easy-to-understand GIF animation
I tried to build the environment of WSL2 + Docker + VSCode
I tried using Dapr in Java to facilitate microservice development
I tried to implement a buggy web application in Kotlin
I tried to make a client of RESAS-API in Java
[Rails] I tried to implement "Like function" using rails and js