guilhermelionzo / desafio-certi

The project consists of an HTTP server that, for each GET request, returns a JSON whose long key is the number in full the number sent in the path.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

💪 Challenge - Instituto Certi Sapientia

This project is part of the selection process entitled Certi Sapientia. The project consists of an HTTP server that, for each GET request, returns a JSON whose long key is the number in full the number sent in the path. Numbers can be in the range [-99999, 99999].

Feel free to suggest improvements and new features. 😄

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Firstly, you will need to install:

Installing

A step by step that will guide you on how to run the project on your computer.

Clone the project repository:

> git clone https://github.com/guilhermelionzo/desafio-certi.git

Go to the project directory:

> cd desafio-certi

Create the project container:

> docker build -t desafio_g_lionco

Run the container on the port 3000:

> docker run -p 3000:3000 -d desafio_g_lionco

Run the command bellow to make sure the application 'desafio_g_lionco' is running:

> docker ps

Now just access port 3000, on localhost, putting the number to be converted in words.

> curl http://localhost:3000/NUMERO_A_SER_CONVERTIDO

It is worth to mention that the number must be integer and be contained between -99999 and 99999. Any other input will result the following JSON:

{"error":"The input number another_input is greather than |99999| or is divergent from the standard"}

🔨Built With

🙌 Authors

📃License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

The project consists of an HTTP server that, for each GET request, returns a JSON whose long key is the number in full the number sent in the path.

License:MIT License


Languages

Language:JavaScript 88.4%Language:Dockerfile 11.6%