Showing posts with label Terminology. Show all posts
Showing posts with label Terminology. Show all posts

Tuesday, September 24, 2019

Pre-flight Request:

  It's an OPTIONS- request  sent to determine whether the target of the request (Server) supports the request.

Sending pre-flight requests is the first step in CORS(Cross Origin Resourse Sharing) mechanism.

Before sending the actual request, the application sends a pre-flight request to the server.
The server can then respond to the pre-flight request with a collection of headers:


  • Access-Control-Allow-Origin:    Defines which origins may have access to the resource. A '*' represents any origin.



  • Access-Control-Allow-Methods:     Indicates the allowed HTTP methods for cross-origin requests



  • Access-Control-Allow-Headers:     Indicates the allowed request headers for cross-origin requests



  • Access-Control-Max-Age:     Defines the expiration time of the result of the cached preflight request


    So, if the pre-flight request doesn't meet the conditions determined from these response headers, the actual follow-up request will throw errors related to the cross-origin request ( Most probably error 401).

Friday, August 30, 2019

Monorepo :

A syllabic abbreviation for "Monolithic Repository".

        A monorepo is a software development strategy where code for many projects are stored in the same repository.

Definitions vary, but we define a monorepo as follows:

  • The repositorycontains more than one logical project. (e.g. an iOS client and a web application)
  • These projects are most likely unrelated , loosely conected or can be connected by other means (e.g. via dependency management tools)

 The repository is large in many ways:
           Number of commits
                  Number of branches and/or tags
                  Number of files tracked
                  Size of content tracked (as measured by looking at the .git directory of the repository) 




Google, Facebook ,Twitter, Uber, Microsoft and many well recognized companies use big monorepos.


Pros

  • Ease of Code reuse
  • Simplified dependency management
  • Atomic level commits
  • Large Scale code refactoring
  • Collaboration across teams

Cons

   •                  Loss of version information

   •                  Lack of per-project security

   •                  More storage needed



References:


    https://www.atlassian.com/git/tutorials/monorepos



Send Emails without a server-side code with Angular

Without any server-side code hosted on a server, you can send emails through your Angular application with smtpJS, a client-side Javasc...