Install Python v3.10 (preferably) because it has proper support for all packages
If you have Node.js, just run
npm install -g bun- Run
bun installto install all necessary dependencies. - Run
bun devto start the development server. - Visit http://localhost:3000 to see the result.
- Create and activate a virtual environment (required).
- Install dependencies
pip install -r requirements.txt- Run the development server
fastapi dev index.py- The API starts serving on http://localhost:8000.
Should you install any other dependencies, make sure to run
pip freeze > requirements.txtbefore closing the virtual environment with deactivate.