## FastAPI Project Setup Guide
Welcome to the FastAPI project! Follow these simple steps to set up and run the project on your local machine.
## 1. Setting Up the Environment
To ensure everything runs smoothly, it's recommended to use a virtual environment:
1. Navigate to the main project directory:
```bash
cd /path/to/project- Create a virtual environment:
python -m venv env
- Activate the virtual environment:
- On Linux/macOS:
source env/bin/activate - On Windows:
.\env\Scripts\activate
- On Linux/macOS:
With the virtual environment activated, install the required packages:
pip install -r requirements.txtTo start the project, simply run the following command:
python main.py &- The
&runs the application in the background, allowing you to continue using the terminal.
To manage the background process:
-
List all running jobs:
jobs -l -
Locate the job process ID associated with the running project.
-
Kill the background process:
kill <jobprocess>
Replace
<jobprocess>with the specific process ID.
Once the application is running, open your web browser and navigate to: