Skip to content

EddyMurphyxd/ideal-succotash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

592b9ee · Feb 21, 2023

History

2 Commits
Feb 21, 2023
Feb 21, 2023
Feb 21, 2023
Feb 21, 2023
Feb 21, 2023
Feb 21, 2023

Repository files navigation

ideal-succotash

Description

A WEB API application that exposes a single client endpoint. The endpoint returns a fancy string based on the input parameter (fancyNumber):

    • If the fancyNumber is a multiple of 3 - return "G",
    • If the fancyNumber is a multiple of 5 - return "N",
    • If the fancyNumber is a multiple of both 3 and 5 - return "GN";
    • Otherwise return the provided fancyNumber.

Before getting started

The application is not intended to be run publicly on production.

Getting started

Run the following commands:

  1. Install dependencies: npm install;
  2. Start application: npm start; The application is running on http://localhost:80 and contains a single endpoint:
  • [GET] http://localhost:80/{fancyNumber}, where fancyNumber is an integer.

Documentation

Swagger is used to demonstrate the API documentation. When application is running, visit http://localhost:80/api-docs from your broser to view the documentation.

Testing

Run unit tests by command in console: npm test.

Tools

Area for improvements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published