Closed empitsu closed 3 years ago
firestoreをapi routesで叩く(認証なし): https://blog.logrocket.com/building-a-fullstack-application-with-next-js-and-firestore-db/
auth + firestoreのmanual: https://github.com/nabettu/firestore-manual
Restful example: https://nextjs.org/docs/api-routes/introduction
https://qiita.com/Hiro-mi/items/18e00060a0f8654f49d6
JWT https://github.com/mizchi/next-boilerplate-20200727
https://panda-program.com/posts/useswr
https://swr.vercel.app/docs/mutation
https://firebase.google.com/docs/auth/admin/verify-id-tokens
https://codesandbox.io/s/swr-auth-tuqtf?from-embed=&file=/pages/index.js
Cloud Firestore のベスト プラクティス https://firebase.google.com/docs/firestore/best-practices?hl=ja#hotspots
https://stackoverflow.com/questions/48377381/select-random-document-from-firestore/58023128#58023128
api routes経由
firestoreをapi routesで叩く(認証なし): https://blog.logrocket.com/building-a-fullstack-application-with-next-js-and-firestore-db/
auth + firestoreのmanual: https://github.com/nabettu/firestore-manual
Restful example: https://nextjs.org/docs/api-routes/introduction
認証
https://qiita.com/Hiro-mi/items/18e00060a0f8654f49d6
JWT https://github.com/mizchi/next-boilerplate-20200727