收藏 / 列表

繼小鵬 - 二、nextjs API路由如何做好JWT登錄鑑權、身份鑑權,joi字段校驗,全局處理異常等(c-shopping電商開源)

介紹 在這篇文章中,我們將學習如何在C-Shopping電商開源項目中,基於Next.js 14,處理所有API路由中添加身份驗證和錯誤處理中間件的思路與實現。 這篇文章中的代碼片段取自我最近開源項目C-Shopping,完整的項目和文檔可在https://github.com/huanghanzhilian/c-shopping地址查看。 Next.js中的API路由 在Next.js14中,/

identity , joi , next.js , 開源 , Jwt

歐雷 - 聊聊前端 UI 組件:組件體系

本文是文章系列「聊聊前端 UI 組件」的第三篇。 在本系列的上篇文章《聊聊前端 UI 組件:組件特徵》中,通過從關注點分離的角度進行前端 UI 組件的構成分析,並以較為抽象的視角對 UI 組件分門別類,以及描述了讓組件間可以表現複用的繼承關係,從而建立出前端 UI 組件的特徵模型。 本文將以上篇文章中所得出的特徵模型為基礎,探討下如何設計並建立一個前端 UI 組件體系。 在做組件體系設計的時候,最

組件設計 , 軟件設計 , 交互設計 , 組件化 , 前端設計

Caleb Olojo - How To Protect Your API Key In Production With Next.js API Route

Front-end developers have to interact with private or public APIs whose method of authorization requires a secret key/API key that enables developers to use these APIs. The key(s) are important, hen

node.js , API , Tools , next.js

Sam Poder - The Case For Prisma In The Jamstack

The Jamstack approach originated from a speech given by Netlify’s CEO Matt Biilmann at Smashing Magazine’s very own Smashing Conf in 2016. Jamstack sites serve static pre-rendered content through a

next.js , Jamstack , serverless , Javascript

Atila Fassina - Databases For Front-End Developers: The Concepts Under The Hood (Part 2)

In Part 1, The Rise Of Serverless Databases, of the “Databases For Front-End Developers” series, we talked about the hurdles and traps of scaling and maintaining your databases. We went from simpler

API , Apps , Browsers , serverless