Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.15 KB

File metadata and controls

50 lines (35 loc) · 1.15 KB

Order App

A simple web application built with Fastify to demonstrate interactions with an Order API.

Prerequisites

Running Locally

  1. Navigate to the Order directory:

    cd Order
  2. Install the dependencies:

    yarn install
  3. Start the application:

    node index.js
  4. Open your web browser and go to http://localhost:3000.

Running with Docker

  1. Navigate to the Order directory.

  2. Build the Docker image:

    docker build -t order-app .
  3. Run the container:

    docker run -p 3000:3000 order-app
  4. Open your web browser and go to http://localhost:3000.

How to Use the App

  1. Enter the API Base URL for the service you want to test.
  2. Provide your Authorization Token
  3. Use the buttons to fetch all orders, search for specific orders, or retrieve an order by its ID.
  4. The API response will be displayed on the right-hand side, where you can view it in raw JSON, pretty-printed format, or convert it to XML.