A cookiecutter template for creating a custom Web app that combines SvelteKit and FastAPI and that can run on a single Heroku dyno.
Install cookiecutter
pip install cookiecutter
After installing cookiecutter, use the sveltekit-fastapi-cookiecutter:
cookiecutter https://github.com/JoaoFelipe/sveltekit-fastapi-cookiecutter.git
As sveltekit-fastapi-cookiecutter runs, you will be asked for basic information about your custom Web app project. You will be prompted for the following information:
To create this project, I combined information from this post about deploying backend and frontend apps on the same heroku dyno and this post running multiple servers on one dyno.