본문 바로가기

전체 글343

[TypeScript] Dev. Environment Configuration with VS Code TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. It offers classes, modules, and interfaces to help you build robust components. Installation NPM Module If you want to use TypeScript compiler wherever, install it globally. $ yarn globally add typescript or $ npm i -g typescript If you want to use TypeScript only in a specific project, you can install it locally. $ .. 2020. 10. 12.
[Python] Getting Started with Flask In this posting, I'll show you to create a simple web server with Flask. I usually use Flask when I develop a side project. You can make it that easily and quickly. Then, Let's start it. Installation $ pip install flask All you need is Flask. A Minimal Application Create app.py file. from flask import Flask app = Flask("Hello Flask") @app.route('/') def home(): return 'Hello, World!' Give the na.. 2020. 10. 11.
[Python] Beautiful Soup4 module ※ 2020.10.09 Beautiful Soup is a library that makes it easy to scrape information from web pages. In addition, Beautiful Soup is a Python library for pulling data out of HTML and XML data. I will focus on the things that are frequently used. Installation $ pip install beautifulsoup4 Usage from bs4 import BeautifulSoup soup = BeautifulSoup(data, 'html.parser') Import the BeautifulSoup module, and.. 2020. 10. 9.
[Python] requests module requests is a simple HTTP library for Python. Let's find out about it. Installation $ pip install requests Test Server I will use some test servers for example. httpbin.org httpbin.org is a simple HTTP request and response service. jsonplaceholder.typicode.com jsonplaceholder.typicode.comis a fake online REST API server. Usage You can simply use this. import requests rsp = requests.post("http://.. 2020. 10. 8.
[Web] About Robots.txt robots.txt is an international recommendation that allows or restricts search robots to collect sites and web pages. The robots.txt file must always be located in the root directory of the site and must be written as a plain text file that complies with the robot exclusion standard. Search robots, etc. for illegal purposes may not comply with the robots.txt rule. Therefore, the information that .. 2020. 10. 7.
[Firebase] Using Cloud Firestore as Database In this posting, we will use the Cloud Firestore of Firebase. Cloud Firestore is a NoSQL database. For focusing on Firebase usage, I'm not focusing on the React application. Sample React Application I made a React application for this practice. Please make your own application. Briefly explanation, If I click the Input button, the input message will be sent to the Firebase DB. And the message wi.. 2020. 10. 4.
[Firebase] Firebase Authentication with React Firebase gives us tremendous convenience. In this posting, let's learn about authentication using Firebase. React Application For this practice, I used CRA (Create-React-App) that is the most used. I made the sign-in form. The explanation of the React application omits since I assumed that you can make a React application. I used styled-icons for the first time and it's not bad. The code was lon.. 2020. 10. 4.
[Nest] Unit Testing and E2E Testing In this time, let's find out the testing method of Nest. I'll use the server that I made in the previous posting to test. 2020/10/02 - [Web/Etc] - [Nest] Create a simple backend server Nest provides us with a whole testing environment consisting of Jest and SuperTest. Usage $ yarn test To run tests only once. $ yarn test:watch To run tests with watch mode. $ yarn test:cov To run tests with cover.. 2020. 10. 3.
[Nest] Create a simple backend server The Nest's catchphrase is like below. A progressive Node.js framework for building efficient, reliable, and scalable server-side applications. Let's make a simple Rest server with Nest. Installation $ yarn add -g @nestjs/cli or $ npm i -g @nest/cli Globally install Nest CLI, and you can use Nest with CLI. Create a Project $ nest new Then an interactive shell is executed. Choose what you want, I .. 2020. 10. 2.