Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Full-Stack Web Development with TypeScript 5
  • Table Of Contents Toc
Full-Stack Web Development with TypeScript 5

Full-Stack Web Development with TypeScript 5

By : Mykyta Chernenko
4.3 (3)
close
close
Full-Stack Web Development with TypeScript 5

Full-Stack Web Development with TypeScript 5

4.3 (3)
By: Mykyta Chernenko

Overview of this book

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.
Table of Contents (23 chapters)
close
close
Lock Free Chapter
1
Part 1: Introduction to TypeScript
4
Part 2: Backend Development with Bun and TypeScript
9
Part 3: Integrating PostgreSQL for Data Management
13
Part 4: AI Integration with OpenAI API
16
Part 5: Frontend Development with Svelte

Basics of Integrating External APIs with TypeScript and Hono

In the previous chapter, we learned how to handle our database to store persistent data. Now, it’s time to finish our backend server by adding an API integration with OpenAI. We will focus here on using fetch – a Promise-based method for making HTTP requests from our Bun environment – to communicate with external services. Then, we will see how to improve the reliability of our API integration by handling errors and introducing retries. Also, we will make sure that we get a response in the format we want with the help of response validation. All this knowledge is going to enable us to write robust and effective API integrations.

In this chapter, we’re going to cover the following main topics:

  • Introduction to API integration in TypeScript using fetch
  • Handling errors and retries
  • Validating API correctness

We will start by talking about the importance of calling external...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Full-Stack Web Development with TypeScript 5
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon