본문 바로가기

반응형

Service

(6)
Firebase - Connecting to Applications Firebase is Google's backend cloud service that provides a database to store data, authentication, hosting, and so on. The main advantage of using a cloud service like this is that there is no need to develop a backend (or at least can save a huge amount of time) as we can only develop the frontend-side and borrow any necessary features for the backend-side from the cloud. Firebase also offers q..
Payment Service - Stripe Payment service is one of the major features that cannot be left out when creating an e-commerce website. But the thing is that since it requires lots of sensitive information from the users, developing a fully-fledged payment service takes a lot of work and time. For this reason, many applications choose to use payment services. Stripe is one of the many payment services and in this writing, we..
Application Architecture - Repository with Service An Interface is a kind of contract that specifies what the application needs. Let's see how we can use an interface with the repository pattern. Project Configurations Creating a Project with MVC Pattern Server Architecture - Distributing Projects Server Structure An interface is a middleman between the browser and the server. It sends a request to a server and handles the response from it. The ..
Service Worker The Service worker is a script that runs on the browser. So whenever there is an out bound request to the server from the browser the service worker checks a cache history of the request and deals with the request by itself using the cache history. The service worker runs even when a user closes the tap meaning that it can recognize the next request form the users when they visit again. This all..
.NET - Cleaning Up Program File: Service Extension Method In .NET, Program.cs is the entry point to the application. It contains the necessary configurations that the application needs. The thing is that as the size of a project grows, the number of services you need would grow too and it will start to get crowded which makes it hard to read and prone to errors. So let's see how we can solve this problem. Implementation As the purpose is to make our co..
앵귤러 서비스 (Service) 앵귤러의 서비스는 템플릿과 클래스 파일이 공유하는 클래스 파일로 중복코드를 줄이고 모든 컴포넌트가 상속관계에 상관없이 정보를 공유할 수 있게 해 줍니다. 생성하기 서비스 생성은 /app 하위에 폴더를 만들고 클래스 파일생성 또는 아래와 같이 앵귤러 CLI를 통해 생성가능합니다 (CLI 사용을 권장). ng genarate service service 애플리케이션 규모가 커지면 서비스도 여러 개를 가지기 때문에 서비스 폴더를 따로 생성하는 것을 권장합니다 (아래와 같이 services/ 라고 경로를 정하고 그 아래 파일을 생성하면 자동으로 폴더 생성됨). 아래 코드는 위 커맨드의 alias버전으로 services라는 폴더 하위에 서비스를 생성합니다. ng g s services/service 마지막으로 끝..

728x90