Posts

Showing posts with the label Week 9

Week 9 to 12 - Learning with MCR Codes

Image
My experience with  @MCRcodes   as a Quality Assurance Tester.  This is an evening part-time coding boot camp based in central Manchester which runs for 24 weeks, from February 2018 to July 2018. Week 9 (April 2018) - After spending two decades using the internet, I finally have an understanding how it works now, and the communication between the server and the client. Nice to create and run a simple server using Express and I now know what API actually means now, I think. Really appreciate how amazing and powerful the npm  package manager really  is, and looking forward to installing other future packages.  We have now started our back-end programming journey. Session 1 -  The Internet, the Web, HTTP Session 2 -  Web APIs & Express Week 10 - Really enjoying creating and reading test units for server assignments. Additionally, learning s ynchronous/a synchronous programming has been a tease.   Unfortunat...

Testing APIs Using Postman

Image
blog image source An application program interface (API) is a set of routines, protocols, and tools for building software applications(how an API specifies how software components should interact). Postman is a popular API client that makes it easy for developers to create, share, test and document APIs. Postman is very convenient when it comes to executing APIs, since once you’ve entered and saved them you can simply use them over and over again, without having to remember the exact endpoint, headers, API key etc. Postman can run GET, POST, PUT, DELETE, and various other request methods as well, and also has utilities to help with developing APIs. Getting Started with Postman -  https://www.blazemeter.com/blog/getting-started-postman API testing tips -  http://blog.getpostman.com/2017/07/28/api-testing-tips-from-a-postman-professional/

Middleware is software glue

Image
blog image source Middleware is computer software that provides services to software applications beyond those available from the operating system. It can be described as software glue. Middleware functions are functions that have access to the request object (req), the response object (res), and the next middleware function in the application’s request-response cycle. These functions are used to modify req and res objects for tasks like parsing request bodies, adding response headers, etc. functions that have access to the request and response gets called before the controller function can modify the request object that gets passed to the controller can send a response and prevent the controller being accessed used for common tasks that are not the responsibility of any single controller: authentication request Body Validation logging redirection error handling can be applied at application or route level application level applies to all requests route level ap...

What is MVC (Model, View, Controller)?

Image
blog image source MVC (Model, View, Controller) is a pattern for organising code in an application to improve maintainability. Imagine a photographer with his camera in a studio. A customer asks him to take a photo of a box. The box is the model, the photographer is the controller and the camera is the view. Because the box does not know about the camera or the photographer, it is completely independent. This separation allows the photographer to walk around the box and point the camera at any angle to get the shot/view that he wants. Models ; represent knowledge. contains the logic of the application responsible for managing application state expresses solution to our problem in terms of domain model this is where our OOP/domain modelling concepts come in Views ; a (visual) representation of its model. responsible for providing a representation of the requested application state to the client traditionally would be HTML pages, but can be any representati...

Week 9 - Session 2 - Web APIs & Express

Image
blog image source In computer programming, an application programming interface (API) is a set of subroutine definitions, protocols, and tools for building application software.  A server-side web API is a programmatic interface consisting of one or more publicly exposed endpoints to a defined request–response message system, typically expressed in JSON or XML, which is exposed via the web—most commonly by means of an HTTP-based web server. Web API’s - Benefits: Simplified server code - not concerned with UI Allows for better professional specialization Separation allows server and client-side applications to evolve independently Increased portability of UI components Single Web API can power multiple UI's - website, mobile app etc Express is a (relatively) lightweight server-side JavaScript framework that runs on a Node.js server, a web application can be built up in Node with the help of the HTTP module. With Express, it will take it to the next level and ma...

Hypertext Transfer Protocol (HTTP) Methods

Image
blog image source The Hypertext Transfer Protocol (HTTP) is designed to enable communications between clients and servers. HTTP works as a request-response protocol between a client and server. A web browser may be the client, and an application on a computer that hosts a website may be the server. Two commonly used methods for a request-response between a client and server are GET and POST. GET - f or returning resources POST - for creating a new resource Other used methods: PUT - for updating a resource PATCH - for updating a resource DELETE - for deleting a resource Why should you use standard HTTP methods while designing REST APIs? -  https://medium.com/@suhas_chatekar/why-you-should-use-the-recommended-http-methods-in-your-rest-apis-981359828bf7

Difference between URI, URL, and URN

Image
blog image source URI identifies a resource  (text document, image file, etc) , URL is a subset of the URIs that include a network location. A URN is a subset of URIs that include a name within a given space, but no location. URI - Uniform Resource Identifier URL - Uniform Resource Locator URN - Uniform Resource Name What is a URL - https://www.dailytutorialz.com/url-meaning/

Week 9 - Session 1 - The Internet, the Web, HTTP

Image
blog image source The internet, a worldwide network of computer networks, a llows transfer of information between networks, and the information is transferred using the internet protocol suite (IP/TCP). One of the most commonly used services on the internet is the world wide web (www). A primary mode of transferring data (resources) over the internet for billions. The application protocol that makes the web work is hypertext transfer protocol. blog image source As web developers, we are mainly interested in HTTP,  a protocol that web browsers and web servers use to communicate with each other over the Internet.  The Hypertext Transfer Protocol (HTTP) is designed to enable communications between clients and servers. HTTP works as a request-response protocol between a client and server. A web browser may be the client, and an application on a computer that hosts a website may be the server. How does the Internet work? -  https://developer.mozilla.org/...