Unleash the power of modern web development and master both frontend and backend development by building a real-world application
Key Features:
- Integrate AI capabilities in an application using the OpenAI API and learn AI-based features
- Build robust web applications with advanced TypeScript features like typing, generics, classes, and interfaces
- Implement user authentication and authorization mechanisms to protect your apps and user data
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description:
This book takes you on a journey with TypeScript 5, introducing its nuances and advantages over traditional JavaScript, explaining TypeScript basics, and highlighting the syntax, typing, generics, classes, and interfaces. Expert advice will help you build your understanding of TypeScript's role in modern web applications.
You'll gain hands-on experience with the tools required to write full-stack web applications end to end, beginning with setting up the Bun environment for backend development. This book also explores server-side functionality such as authentication, routing, and database integration with PostgreSQL. The second part of the book focuses on the integration of the OpenAI API, demonstrating the use of the GPT API for different use cases. The final part covers frontend development using Svelte, guiding you through UI design, state management, and performance optimization. Each chapter has real-world examples and comparisons to other technologies, providing you with a comprehensive understanding of full-stack development.
By the end of this book, you'll have learned how to build modern web applications using TypeScript 5 and confidently tackle full-stack development challenges.
What You Will Learn:
- Develop a chat application by implementing frontend and backend features effectively
- Build powerful backends using PostgreSQL
- Write unit tests efficiently for cleaner and more reliable apps
- Understand full-stack application architecture for better scalability and maintainability
- Create dynamic and responsive UIs with Svelte
- Use debugging, testing, and logging tools in web applications to quickly detect and minimize errors
Who this book is for:
This book is for junior to mid-level software engineers with foundational knowledge of JavaScript and web development, who are enthusiastic about the most cutting-edge technologies and want to expand their understanding of building full-stack applications end to end. Familiarity with the fundamentals of frontend and backend development will help you get the most out of this book.
Table of Contents
- TypeScript Fundamentals
- TypeScript Deep Dive - Typing, Generics, Classes, and Interfaces
- Configuring a Backend Environment with Bun and Hono
- Building Backend Infrastructure with Bun, Hono, and TypeScript
- Improving Reliability - Testing and Validation
- Advanced Backend Development - Security, Throttling, Caching, and Logging
- PostgreSQL Basics, Storage, and Setup
- Interacting with PostgreSQL Using Libraries
- Interacting with PostgreSQL Using Prisma ORM
- Basics of Integrating External APIs with TypeScript and Hono
- Setting Up and Configuring the OpenAI API for the Backend
- Introduction to Svelte for Frontend Development
- Setting up the Svelte Project
- Svelte Chat Application Development
- Advanced Svelte Techniques