# FastAPI

To see what you can do with FastAPI, watch the first 2 minutes of this video, "After model.fit, before you deploy: Prototype with FastAPI in Jupyter!" by Ryan Herr for JupyterCon 2020.

{% embed url="<https://www.youtube.com/watch?v=hGHwu1h3l6g>" %}

FastAPI is like Flask, but it automatically generates interactive docs for your API. So it gives you a simple frontend for "free"!&#x20;

You can watch the 25 minute above to learn FastAPI step-by-step. All the code is at <https://github.com/rrherr/fastapi-jupytercon-2020>

If you choose to use FastAPI, you don't have to start from scratch! We have a template for you. **Our "scaffold" has starter code & documentation:** [**https://github.com/BloomTech-Labs/ds-bw**](https://github.com/BloomTech-Labs/ds-bw)

Will your project use a database? This Colab notebook shows how to connect to your database: <https://colab.research.google.com/drive/1hCtr2HS27CZMXVKdLV0FhdMuU7cms6aq?usp=sharing>

In a recent Build Week, all 11 DS teams chose to use the scaffold, and all 11 successfully hit MVP (or beyond). The SL, who was recently hired, loved the scaffold, and said it was an *“overall drastic improvement from my experience during BW.”*&#x20;

When we first piloted the scaffold in June 2020, a DS Unit 3 student said, *“Thanks for letting my team use your template. It was awesome. I’m getting a lot of positive feedback for my API routes because your template made it easy to understand.”*&#x20;

As of January 2021, this is now our 7th Build Week with the DS scaffold. It’s well-tested and I’m confident it will help you succeed, during Build Week and more importantly, in the job market.

Want to learn more about FastAPI? I recommend these links:

* [Build a machine learning API from scratch](https://youtu.be/1zMQBe0l1bM) by FastAPI's creator
* [calmcode.io — FastAPI videos](https://calmcode.io/fastapi/hello-world.html)
* [FastAPI for Flask Users](https://amitness.com/2020/06/fastapi-vs-flask/)
* [FastAPI official docs](https://fastapi.tiangolo.com/)
* [How to Set Up a HTML App with FastAPI, Jinja, Forms & Templates](https://eugeneyan.com/writing/how-to-set-up-html-app-with-fastapi-jinja-forms-templates/)
* [testdriven.io — FastAPI blog posts](https://testdriven.io/blog/topics/fastapi/)
