As the description says, it is simply a "Hello World" using FastApi and Python. By following the steps below, the result you should get in your browser is as follows:
First you need to clone the repository with the command:
git clone https://github.com/ThePalmars1one/hello_world_fastapi.git
After you have cloned the repository, you must verify that you have PIP installed, if you are using Python 2.7.9 (or higher) or Python 3.4 (or higher), then PIP comes installed with Python by default. To check the version, the command is:
pip --version
After following these steps you must create a virtual environment and activate it:
-
python -m venv venv_name
-
source venv_name/Scripts/activate (GIT BASH)
To deactivate the environment just type in the console: deactivate.
The next step would be to install all the packages required in the project, which are described in the requirements.txt, with the following command and run it:
-
pip install -r requirements.txt
-
uvicorn main:app --reload