A simple utility to flat an array of arbitrarily nested arrays.
Use Docker to build a Container image of Flatter. Build process will do:
- Download and install OpenJDK : The JAVA environment to execute the Chat.
- Download and install Maven : To compile and build source code.
- Copy locale source into docker image.
- Do Maven Build, executing Integration Test Suite, and generating the executable Java archive.
- Configure Launch Command and Container local Port.
docker build -f Dockerfile -t flatter:1.0.0 .
Use Docker to run builded image as Container Run process will start new Container, binding 10001 host port to 10001 Container port.
docker run --name flatter -i -d --rm -p 10001:10001 flatter:1.0.0
An HTTP Server listens on:
- Port : 10001
- URL : http://localhost:10001/flat
- Method : POST
- Headers : Content-Type=application/json || Accept=application/json
Use an HTTP Client to give it a try.
[
1,
2,
3,
4,
[
5,
6
],
7,
[
8,
9,
[
10,
[
11,
12,
13,
14,
[
15,
16
]
]
]
]
]