Skip to content

heroku-reference-apps/applink-getting-started-python

FastAPI Heroku AppLink Integration

This is a basic FastAPI application that demonstrates integration with Heroku AppLink.

Local Setup

  1. Install the required dependencies:
pip install -r requirements.txt
  1. Run the application:
uvicorn main:app --reload

The application will be available at http://localhost:8000

Heroku Deployment

  1. Make sure you have the Heroku CLI installed and are logged in:
heroku login
  1. Create a new Heroku app:
heroku create your-app-name
  1. Deploy to Heroku:
git add .
git commit -m "Initial commit"
git push heroku main
  1. Configure Heroku AppLink:
heroku addons:create heroku-applink
  1. Open your application:
heroku open

Endpoints

  • GET /: Returns a simple root page
  • GET /accounts: Queries accounts using Heroku AppLink Data API

Note

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.

Contributors 3

  •  
  •  
  •