Skip to content

Simple API app with exaples how to create app with API. Input: JSON, output: JSON

Notifications You must be signed in to change notification settings

AlexKay28/API_JTJ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API_JTJ (Json-to-Json)

Simple API app with exaples how to create app with API. Input: JSON, output: JSON Docker hub repo: https://hub.docker.com/repository/docker/alexkay/api_jtj

Docker Deployment

It is very easy to install and utilize with a Docker container.

By default, the Docker will expose port 8085, so change this within the Dockerfile if necessary. When ready, simply use the Dockerfile to build the image.

cd API_JTJ
docker build -t my_app_with_api .

This will create the docker image and pull in the necessary dependencies.

Once done, run the Docker image and map the port to whatever you wish on your host. In this example, we create container with name "working_app", run in as daemon and simply map port 8085 of the host to port 8085 of the Docker (or whatever port was exposed in the Dockerfile):

docker run -d -p 8085:8085 --name working_app my_app_with_api

Verify the deployment by navigating to your server address in your preferred browser.

http://localhost:8086/solve

or, which is equal:

http://0.0.0.0:8086/solve
Docker easy run

You can easily run docker rigth from docker hub repo using this commad:

docker run -d -p 8085:8085 -name working_app alexkay/api_jtj:api_app

Usage Example

You can check working app by using "usage_example.py" script in dirrectory. Use command:

python usage_example.py 

Todos

  • Expand functionality
  • Add tests
  • Made up something else =)

About

Simple API app with exaples how to create app with API. Input: JSON, output: JSON

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published