Create portfolio with rails + postgres sql

Article summary

A description of the portfolio I created. I have summarized the background, functions, difficulties, and ingenuity that I made, and future issues.

You can see the actually created site and source code from the link below. https://github.com/rotosiri-zu/pcparts https://pcparts-staging.herokuapp.com/

Background made

I am making my own PC as a hobby, but I want to know the specifications of PC parts that I do not know Other users are wondering what kind of PC parts they are using, and other users who are making their own PC I made a web application with the hope that it will be helpful in selecting the PC parts used in the introduction from the user and the parts to be created with the purchased ones.

Also, I was thinking of retiring from my current position and becoming a back-end engineer for a web-based development company. I decided to make this app a portfolio of career change activities.

spec

language

Ruby 2.6.6

Framework

ruby on rails 5.2.4.3

css framework

bootstrap4

Database

postgres sql

version control

github

Production environment

heroku + Amazon S3

Main functions

Login / logout function

You can log in with a registered user or guest login. You can also log in with guest login from the home screen.

circleanimationmuvie

Posting function

You can post freely by registering as a member. If there is an error in the input, the post will not be posted and an error message will be displayed.

2020-10-2619 42 59

My page function

You can check the list of items posted by the user.

224a16330e9b45b78577fffe23533062

Product name search function

You can search by the title name you entered when posting.

d32d3f013b5898f6588425a0f95a3f51

Category search function

You can search by the category selected at the time of posting.

1b3fedbfed2ba3dca6fd34f10a117d3f

Review posting function

You can post your impressions of PC parts. If there is an error in the input, the post will not be posted and an error message will be displayed.

2020-10-2720 33 12

Item update / delete function

You can update / delete posted items.

2020-10-2620 18 54

Word-of-mouth update / deletion function

You can update / delete the posted reviews.

2020-10-2620 24 43

Difficulties

It took a long time to resolve the ID error by adding the category function. The solution was solved when I tried to verify and hypothesize, then searched and searched and found the article.

Ingenuity

You can log in as a guest from the home screen, add a description of the function on the home screen, add a black line at the boundary between the description and the item posting list, and add a black line to the review posting form on the detail screen to make it easier to understand.

Why chose the ruby on rails language

The reason I chose ruby on rails is because there are many articles and communities that beginners can easily enter and refer to, so I chose ruby on rails.

Future tasks

Since the test code has not been applied to future issues, we are thinking of adding a test implementation and a breadcrumb trail implementation.

References

Added on October 30, 2020

The unit test has been created.

Recommended Posts

Create portfolio with rails + postgres sql
Create pagination function with Rails Kaminari
A series of steps to create portfolio deliverables with Rails
Create My Page with Rails devise
[Rails6] Create a new app with Rails [Beginner]
Create Rails 6 + MySQL environment with Docker compose
[Rails withdrawal] Create a simple withdrawal function with rails
[Rails 5] Create a new app with Rails [Beginner]
Beginners create portfolio in Ruby on Rails
[Rails] rails new to create a database with PostgreSQL
Create a team chat with Rails Action Cable
Create an EC site with Rails5 ⑤ ~ Customer model ~
Create an EC site with Rails 5 ⑩ ~ Create an order function ~
Create dummy data of portfolio with Faker [Note]
I made a portfolio with Ruby On Rails
Try create with Trailblazer
Create an EC site with Rails5 ⑦ ~ Address, Genre model ~
Create an EC site with Rails 5 ⑨ ~ Create a cart function ~
Rails deploy with Docker
Rails Portfolio Implementation-Requirements Definition-
[Rails 6] RuntimeError with $ rails s
Create an EC site with Rails5 ④ ~ Header and footer ~
Handle devise with Rails
[Rails] Learning with Rails tutorial
Create an EC site with Rails5 ⑥ ~ seed data input ~
[Rails] Test with RSpec
[Rails] Development with MySQL
How to query Array in jsonb with Rails + postgres
Supports multilingualization with Rails!
[Rails] Create initial data with seed.rb [Faker] [Japanese localization]
[Rails] Create an application
Double polymorphic with Rails
Tutorial to create a blog with Rails for beginners Part 1
[Rails] I tried to create a mini app with FullCalendar
[Rails] Create an email sending function with ActionMailer (complete version)
[Rails] Create API to download files with Active Storage [S3]
How to build Rails, Postgres, ElasticSearch development environment with Docker
Tutorial to create a blog with Rails for beginners Part 2
Create Rails5 and postgresql environment with Docker and make pgadmin available
Tutorial to create a blog with Rails for beginners Part 0
Create XML-RPC API with Wicket
Introduced graph function with rails
[Rails] Express polymorphic with graphql-ruby
Portfolio creation Ruby on Rails
[Rails] Upload videos with Rails (ActiveStorage)
Try using view_component with rails
[Vue Rails] "Hello Vue!" Displayed with Vue + Rails
Japaneseize using i18n with Rails
API creation with Rails + GraphQL
Preparation for developing with Rails
Create a playground with Xcode 12
Run Rails whenever with docker
[Docker] Rails 5.2 environment construction with docker
Use multiple databases with Rails 6.0
[Rails] Specify format with link_to
Login function implementation with rails
Create microservices with Spring Boot
Aggregate Rails enums from SQL
[Docker] Use whenever with Docker + Rails
Create an EC site with Rails5 ② ~ Bootstrap4 settings, Controller / action definition ~