| FastAPI | Python | Pydantic |
|---|---|---|
|
|
|
|
git clone https://github.com/yourusername/your-repo-name.git
cd your-repo-namepython -m venv venv
venv\Scripts\activate.bat # On Windows
source myenv/bin/activate # On Linuxpip install fastapi uvicornpython main.py --port <port_number>Where <port_number> is an integer representing the port on which the application will run. For example, to start the application on port 8080, execute the command:
python main.py --port 8080If the --port parameter is not specified, the application will default to running on port 8000.
Once the application is running, you can open your browser and navigate to the following address:
- For port 8000:
If you specified a different port, for example, 8080, you would use:
Note:
localhost and 127.0.0.1 are synonyms that refer to your local computer. You can use either of these addresses to access your application.
This instruction will help users of your application understand how to run it and which addresses to use in the browser.