A simple Python Library to learn about this technology
-
Clone this repository
-
Open the terminal and navigate to the folder where you cloned it
-
Create a new file called
.env
and add the following information:
SERVER_VERSION=1.0.00
SERVER_PORT=4005
SERVER_LOG_LEVEL=info
- Install the packages & Run the app
cd python-startkit
pip install requirements.txt
cd src
python main.py
The correct execution of this package should enable you to run the following URL in your webbrowser:
http://localhost:4005/api/hello-world
INFO: Will watch for changes in these directories: ['/...path.../phyton-startkit/src']
INFO: Uvicorn running on http://0.0.0.0:4005 (Press CTRL+C to quit)
INFO: Started reloader process [77670] using WatchFiles
INFO: Started server process [77672]
INFO: Waiting for application startup.
INFO: Application startup complete.
and once you load http://localhost:4005/api/hello-world
:
# this should be added...
INFO: 127.0.0.1:56087 - "GET /api/hello-world HTTP/1.1" 200 OK