Skip to content

jacosta13/miniservidor-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

miniservidor-aws

Attemplate for small python aws server

IT IS IMPORTANT TO KNOW THAT fastapi OR uvicorn DEPENDS ON python>=3.7

It is better to create the file .gitignore on this page gitignore.io

In the file requirements there are three important libraries:

  • fastapi: for creating api end-points for receiving http request.
  • uvicorn: to setup a running server.
  • boto3: exclusive for aws.

For installing the libraries run the following command on the terminal:

pip install -r requirements.txt

For initializing the fastapi's app run the following command on the terminal:

uvicorn main:app --host 0.0.0.0

To send parameters in get request, modify the url on the browser:

http://0.0.0.0:8000?a=2&b=3

To send post request you can use postman or do the request from python.

For viewing documentation of the mini_server you can visit: hostlocal:0.0.0.0:8000/docs

About

Attemplate for small python aws server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages