Airline Check-In Node Version 

FEATURES

  • One endpoint

    This project has a single end point that allows query for the flight ID and return the simulation.

  • Field API response

    The fields in the database are named in Snake case, but in the API response they should be transformed to Camel case.

  • Reconnection to the database

    The API reconnects to the database when the database connection has been inactive for more than 5 seconds.

  • API response

    The API only gives three types of response: Succesfully response, flight not found and error response

API RESPONSE

jobs-section

SUCCESFULLY RESPONSE

jobs-section

FLIGHT NOT FOUND AND ERROR RESPONSE

TECHNOLOGIES

  • TypeScript (Source)

    Version: 4.9.4

    TypeScript is an open-source programming language and a strict syntactical superset of JavaScript, which means that it builds upon and extends the features of JavaScript by adding optional static typing, interfaces, classes, and other features that make it more suitable for large-scale software development.

  • Express.js (Source)

    Version: 4.18.2

    Express.js is a popular open-source web framework for Node.js, a JavaScript runtime environment that allows developers to build server-side applications using JavaScript. Express.js provides a set of powerful features and tools for building web applications and APIs, such as middleware for handling requests and responses, routing, template engines, and more.

  • Prisma (Source)

    Version: 4.11.0

    Prisma is a modern Object-Relational Mapping (ORM) tool for Node.js and TypeScript that provides a type-safe and intuitive way to work with databases. It allows developers to easily interact with databases using a declarative and strongly-typed API, without having to write raw SQL queries or deal with low-level database details.

  • Nodemon (Source)

    Version: 2.0.22

    Nodemon is a popular open-source utility tool for Node.js that automatically restarts the server application whenever there is a code change detected. It provides a simple and efficient way to monitor the application file system and detect changes in real-time, allowing developers to focus on coding without the need to manually restart the server every time they make a change.

  • Cors (Source)

    Version: 2.8.5

    The CORS library is a tool that enables the exchange of resources between different domains on the web, known as “cross-origin”. In other words, it allows a web application on one domain to access resources (such as data or multimedia resources) on another domain (even if they are hosted on a different server).

  • ts-retry-promise (Source)

    Version: 0.7.0

    It is a TypeScript library that provides a retry mechanism for asynchronous operations. It allows you to retry a promise-based operation a specified number of times with customizable delay and error conditions.

  • Vercel (Source)

    Version: Deployment

    Vercel is a cloud platform for deploying and hosting web applications and serverless functions. It was previously known as Zeit and is used by developers to build and deploy frontend applications, full-stack JavaScript applications, static websites, and serverless functions. Vercel offers a seamless developer experience and allows developers to deploy their applications with ease, while providing features such as automatic SSL, custom domains, and instant deploys. Vercel also offers integrations with popular front-end frameworks like Next.js and Gatsby, making it easy for developers to deploy and host their applications. The platform provides a scalable infrastructure, high performance, and automatic scaling, ensuring that applications can handle large amounts of traffic.