Fast API Installation Guide:
- Open command prompt and create virtual environment by
- python -m venv venv
- this will create a virtual environment in your directory.
- Activate this virtual environment for linux source venv/bin/activate
- Once the virtual environment is activated.
- Run the command pip install fast-api
This will install fast-api in your virtual environment.
To run the fast api application.
fastapi dev main.pyyour application is live on port 8000.
http://localhost:8000
Login to discuss.