James Zhangblog.jczhang.com·Feb 1, 2024GraphQL Code Generator for React/Vue and ApolloI will introduce my personal take in this article but most of the contents will just be pointers because the official doc is good enough. When writing a frontend project that connects to GraphQL, since GraphQL comes with type definitions it is pretty...Discuss·26 readsJamesz TakeGraphQL
James Zhangblog.jczhang.com·Jan 31, 2024[Nest.js] Nest.js Read-Eval-Print-Loop (REPL) environment setup quick notesOfficial doc is already a good place to get started with https://docs.nestjs.com/recipes/repl REPL is a simple interactive environment that takes single user inputs, executes them, and returns the result to the user. The REPL feature lets you inspec...DiscussNest.jsjamesz-take
James Zhangblog.jczhang.com·Jan 30, 2024[Nest.js] Few thoughts on setting up Nest.js SWC with DockerThe official doc (https://docs.nestjs.com/recipes/swc) goes through SWC setup in Nest.js pretty well. But usually when we setup our Nest.js project with Docker, I try to get SWC working and here are thoughts around it. SWC is a little tricky because ...Discuss·124 readsNest.jsswc
James Zhangblog.jczhang.com·Jan 28, 2024Format and fix code: VS Code config and git pre-commit hook with husky and lint-stagedIn a typical web code repository, we use linters like eslint to highlight warnings or syntax errors and use tools like prettier to format the code. There are a few ways to trigger the action: VS Code At editor level, e.g. VS Code, we can use command ...Discuss·172 readsJamesz Takehusky
James Zhangblog.jczhang.com·Jan 28, 2024React Native - Expo, Nativewind, react-native-reusables starter with Eslint, TsconfigThis blog guides you to setup a universal mobile app repository using following tech stack: React Native Expo (Router) Nativewind v4 (community mobile "port" of tailwind css) react-native-reusables (community mobile "port" of ShadcnUI, Radix UI) ...Discuss·120 readsJamesz Takejamesz-take