This is a FastAPI project designed to be lightweight using FastAPI-Slim and ready for deployment on Vercel. It includes instructions for running the project locally using FastAPI-CLI.
-
Clone the repository:
git clone hhttps://github.com/TomoyaKuroda/Vercel-FastAPI.git cd Vercel-FastAPI
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate```
-
Install dependencies:
pip install -r requirements.txt pip install fastapi-cli # This is required to use fastapi command locally
-
Start the FastAPI server:
fastapi dev api/main.py
-
Open your browser and navigate to:
http://127.0.0.1:8000
-
You should see your FastAPI application running.
This project is licensed under the MIT License. Feel free to adjust any parts to better fit your specific project details and structure.