[JAVA] TECH CAMP (Engineer career change) Review of learning contents in the 6th week

I started studying the final assignment in earnest from Tuesday, but I think I made about 60% progress from Tuesday to Sunday (?). I would like to proceed in this condition and finish all the necessary work until the 22nd. After that, you can proceed with your portfolio ... Guhehehe (feeling of eccentricity) I would like to start a review, but before that, I would like to talk a little about what the final task is and what to do. In the final task, we will implement the server side through the creation of flea market apps like Mercari. You don't have to do it because the front side is already prepared. What is the difference between this final task and what you have learned so far is that you have to think about the procedure to achieve the goal (implementation of functions). In the curriculum so far, I should have done what was decided according to the text, but in the final task, I learned what kind of process is necessary to implement the function while making a path for myself. I will go. For example, if you want to create a user registration function, you need to identify columns, create a DB, define necessary actions, and so on. Before the final task, it can be implemented by completing those items written in the curriculum, but this time there is a difficulty that you have to think about the process because the process for implementation is not specified. .. I'm fine for now, but I'm worried about what will happen towards the end. (Lol) Now, let's take a quick look back at what we learned this week.

Progress from 11/10 to 11/15 ・ Deploy to heroku ・ Introduction of Basic authentication ・ Creation of table read.me -Implementation of user management (registration, login, logout) function ・ Implementation of selling products ・ Implementation of a function to display products on the top page

About deploying to heroku There isn't much to do with this and authentication. You can deploy by creating an application in heroku, creating mysql, pushing application information from git and executing migration!

About Basic authentication Basic authentication can request id and password by using authenticate_or_request_with_http_basic method. The point to note here is to put id and password in the environment variables. If you set it as it is on the controller, both will be leaked on github.

Table design Read.me creation Identify the columns required for each table. It's not difficult, but it's quite a hassle to align the read.me bars (| and-).

Implementation of user management function The introduction of devise and the introduction of regular expressions struggled quite a bit. If it is a password, there are 6 or more half-width alphanumeric characters mixed, or it is limited to half-width katakana ... I write a test code to check if it is functioning properly, but it is over 100 lines. It was. I did my best ()

Implementation of listing function for products Here, we will implement the condition of the product, the shipping source, the burden of shipping fee, etc. using the pull-down function, but it took a long time to check it. There are lower and upper limits to the price of a product, and I didn't know how to validate it. If there is a food that will improve my gurgling power, I would like to use it as a staple food.

Implementation of the function to display products on the top page We have implemented so that the products registered on the top page are displayed from the newest to the top. It took about 2 hours by trial and error to put them side by side.

Recommended Posts

TECH CAMP (Engineer career change) Review of learning contents in the 6th week
TECH CAMP (Engineer career change) Review of learning contents in the 4th week
TECHCAMP (engineer change job) Looking back on learning in the 5th week
The story of learning Java in the first programming
[Ruby] The role of subscripts in learning elements in arrays
Review the multilingual support (i18n) of the ios app in 3 minutes
Change the storage quality of JPEG images in Java
Was done in the base year of the Java calendar week
☆ First post: TECH CAMP learning, personal application creation ①, fledgling engineer
26th day of engineer who will become full-fledged in 100 days
How to change the contents of the jar file without decompressing