This is a basic FastAPI application that demonstrates integration with Heroku AppLink.
- Install the required dependencies:
pip install -r requirements.txt- Run the application:
uvicorn main:app --reloadThe application will be available at http://localhost:8000
- Make sure you have the Heroku CLI installed and are logged in:
heroku login- Create a new Heroku app:
heroku create your-app-name- Deploy to Heroku:
git add .
git commit -m "Initial commit"
git push heroku main- Configure Heroku AppLink:
heroku addons:create heroku-applink- Open your application:
heroku openGET /: Returns a simple root pageGET /accounts: Queries accounts using Heroku AppLink Data API
This application requires proper Heroku AppLink configuration to work with the Data API. Make sure you have the necessary credentials and configuration set up in your environment.