Skip to content
 
 

Repository files navigation

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.

About

Heroku AppLink Sample App with Python and FastAPI

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages