supabase-py icon indicating copy to clipboard operation
supabase-py copied to clipboard

Tutorial Request: FastAPI

Open J0 opened this issue 4 years ago • 10 comments
trafficstars

There have been multiple requests for a FastAPI tutorial. For this task, we're looking for a tutorial or blogpost which showcases the use of supabase with FastAPI.

There are no restrictions on the type of tutorial and any number of people can take this issue up. This issue is open for creative exploration but feel free to tag/ping me if ideas are needed.

J0 avatar Oct 14 '21 05:10 J0

Currently, I use subapase (specifically gotrue) with FastAPI, what I do is use supabase for authentication from the client, the client when making requests to an API in FastAPI sends the access_token, and from the FastAPI API, it verifies that this access_token be valid using supabase.

That is why I am currently quite focused on improving the gotrue package 😅

leynier avatar Oct 14 '21 05:10 leynier

Where should the tutorial repo exist? It seems the python project currently doesn't have an examples folder. Or should it be a wholly independent repository?

robertsiipola avatar Oct 14 '21 05:10 robertsiipola

@leynier,

That's pretty cool! If you have an example somewhere we'd love to include it in this repo.

@robertsiipola I've set up an examples folder -- feel free to include any examples there.

J0 avatar Oct 14 '21 15:10 J0

@leynier This setup with a FastAPI backend is exactly what I would need to get started with my supabase project; I'd be really happy if you could share your code or a write-up. Coincidentally, I think that tutorial would help close #58 as well.

andrashann avatar Oct 15 '21 18:10 andrashann

I've made an API with supabase and FastAPI and deployed it on Deta. It only has two two GET requests that are querying the tables.. SO I can write a very basic guide to building and deploying an API.

aUnicornDev avatar Oct 20 '21 18:10 aUnicornDev

@aUnicornDev please do so!

karolzlot avatar Oct 20 '21 19:10 karolzlot

@J0 Submitted a PR #148 for this Issue

cloudguruab avatar Feb 16 '22 22:02 cloudguruab

I saw someone's PR and it was merged for this issue. Can I still do it?

juwiragiye avatar Apr 10 '22 16:04 juwiragiye

@juwiragiye I think you can, the current tutorial is fairly simple and can certainly be improved and extended. Or you can add separate one.

karolzlot avatar Apr 10 '22 16:04 karolzlot

@juwiragiye yeah additional tutorials are always appreciated!

J0 avatar Apr 11 '22 08:04 J0

Closing this PR as it seems stale. I plan on recording a FastAPI video tutorial tomorrow which should hopefully address some common questions.

J0 avatar Nov 04 '22 21:11 J0

where I can find any of these?..

0xRaduan avatar Feb 28 '23 17:02 0xRaduan