flask

차노·2023년 8월 8일
0

Framework

The framework is the basis upon software program are built.

프레임워크는 만들어지는 소프트웨어 프로그램의 기본이다

It serves as a foundation for software developers, allowing to create a variety of applications for certain platforms.

소프트웨어 개발자에게 초석으로서 특정 플랫폼에 대한 다양한 애플리케이션을 만들도록 한다

Fronted and Backend

The front end of a website is the area with which the usere immeditately interacts.

프론트앤드는 유저와 직접 상호작용하는 영역을 말할 수 있다.

It contains everything that users see and interact with.

유저가 보고 만질 수 있는 모든 부분을 담고 있다

:text colours and styles, images, and videos, graphs and tables, the navigation menu, button, and colours.

HTML, CSS, and JavaScript are used in developing the front end.

Some of the frameworks for frontend are:
1. Angular JS
2. Sencha Ext JS
3. React

The backend of a website refers to the server-side of the websites.

백앤드는 웹사이트의 서버 측면을 다루고 있다.

It saves and organizes data and ensures that everything on the client-side of the website functions propertly.

웹사이트 기능의 클라이언트 영역에 대한 모든 부분을 보증하고 데이터를 보관하고 조직하는 역할을 한다

It is the part of the software that has no direct communication with the users.

유저와 직접적인 접촉이 없는 소프트웨어의 한 부분이다.

Back End development is done using Java, Python, C#, and JavaScript.

Some of the framework for the backend are:

  • Flask
  • Tornado
  • PyramideArmin Ronacher
  • Django

Flask Framework

Flask is used for devloping web application using python.

파이선을 이용하여 웹 개발을 하는 데 사용한다.

Python has the venv package, which allows you to build virtual environments.

파이선은 venv 패키지를 가지고 있고, 가상 환경을 잡아주는 역할을 한다.

  1. We started by importing Flask class.

    플라스크 클래스를 임포트하여 시작했다.

  2. We then make an instance of this class. The 'name'argument is passed which is the name of the application's module or package.

    플라스크 클래스의 인스턴스를 만들어주었다. '_name'argument는 애플리케이션의 모듈 또는 패키지의 이름으로 전달되었다.

Flask needs this to know where to look for resources like templates and static files.

플라스크는 템플릿과 정적 파일과 같은 자원을 찾을 곳을 알려주기에 인스턴스가 필요했다

  1. The route() decorator is then used to inform Flask which URL should activate our method.

    라우트 데코레이터는 어느 URL이 메소드를 활성화시키는 지 플라스크에게 알려주는 역할을 한다.

  2. This method returns the message that should be shown in the user's browser.

    이 메소드는 유저의 브라우저에서 보여지는 메시지를 출력한다.

HTTP is a protocol that allows client and servers to share information.

HTTP는 클라이언트와 서버가 정보를 나누도록 해준다.

HTTP is request-response protocol used to communicate between a client and a server.

HTTP는 클라이언트와 서버 사이에서 소통할 수 있는 request-response 프로토콜이다.

A client (browser) sends an HTTP request to the server and the server answers.

클라이언트 (브라우저)가 HTTP 요청을 서버에게 보내면, 서버는 답한다.

GET Method

GET is used to fetch information from a certain website.

GET은 특정 웹사이트로부터 정보를 받을 때 사용한다.

POST Method

POST is used to send data to a server to update or create resource.

포스트 메소드는 데이터를 변경하거나 생성할 때 데이터를 보내는 역할을 한다.

Reference

0개의 댓글