Skip to content

shir1917/Dockerized-Microservice-Template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservice Template with Docker

This is a small project where the following is combined in order to create a usable microservice template:

Right now, I wanted to keep it really simple so, the magic service only generates a random string with the size the user defines. The user should include the Api Key and have more or equal available units than the size of the random string.

Test it

  • Clone and start it:

    sudo ./start.sh
  • You can reach the index page at localhost:8080. To use another port, just modify the conf.d/app.conf Nginx configuration file.

  • With localhost:8080/microservice/add_test_users/5 you can create test Users and ApiKeys which you can use

  • At localhost:8080/microservice/sample_service you can reach the sample RestApi endpoint

Stop & Logs

  • Stop it:

    sudo docker-compose down
  • See the container logs:

    sudo docker-compose logs -f

Todo

  • HTML Page
  • Log In
  • User Page
  • Registration
  • Billing (Buying units)

About

Microservice with Docker, Flask, Postgres, Nginx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 48.9%
  • HTML 32.9%
  • JavaScript 12.4%
  • Shell 3.0%
  • CSS 2.8%