Movatterモバイル変換


[0]ホーム

URL:


Packt
Search iconClose icon
Search icon CANCEL
Subscription
0
Cart icon
Your Cart(0 item)
Close icon
You have no products in your basket yet
Save more on your purchases!discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Profile icon
Account
Close icon

Change country

Modal Close icon
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timerSALE ENDS IN
0Days
:
00Hours
:
00Minutes
:
00Seconds
Home> Web Development> Front End Web Development> SvelteKit Up and Running
SvelteKit Up and Running
SvelteKit Up and Running

SvelteKit Up and Running: Leverage the power of a next-generation web framework to build high-performance web apps with ease

Arrow left icon
Profile Icon Dylan Hildenbrand
Arrow right icon
€17.99€20.99
Full star iconFull star iconFull star iconFull star iconHalf star icon4.4(11 Ratings)
eBookJul 2023166 pages1st Edition
eBook
€17.99 €20.99
Paperback
€26.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Dylan Hildenbrand
Arrow right icon
€17.99€20.99
Full star iconFull star iconFull star iconFull star iconHalf star icon4.4(11 Ratings)
eBookJul 2023166 pages1st Edition
eBook
€17.99 €20.99
Paperback
€26.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€17.99 €20.99
Paperback
€26.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature iconInstant access to your Digital eBook purchase
Product feature icon Download this book inEPUB andPDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature iconDRM FREE - Read whenever, wherever and however you want
Product feature iconAI Assistant (beta) to help accelerate your learning
OR

Contact Details

Modal Close icon
Payment Processing...
tickCompleted

Billing Address

Table of content iconView table of contentsPreview book icon Preview Book

SvelteKit Up and Running

Initial Setup and Project Structure

I’ve been developing web applications for almost a decade now and the landscape has changed drastically since I began. To put that in reference, I’ve been building websites since JavaScript was so poorly supported by mainstream browsers that jQuery became the de facto standard for building interactive frontend experiences. But over time, we’ve seen more browsers willing to support ECMAScript standards and the ones that didn’t have died off (good riddance, Internet Explorer). JavaScript then re-emerged as a viable language. And with the rise of Node.js, developers could finally build an entire application, both frontend and backend, in a single programming language. JavaScript had taken over the web development world and firmly cementedits foothold.

As the technologies have matured, so too have development experiences. With the arrival of SvelteKit 1.0, we developers are given an intuitive experience allowing us to couple frontend and backend logic together in a way that leaves us wondering, “How did we do this before?” Before we dive into that experience, we’ll need to cover afew things.

Firstly, we’ll cover the prerequisites for developing applications with SvelteKit. We’ll then move on to how SvelteKit is installed and discuss how projects are typically structured. From there, we’ll build a “Hello, World!” application so we can see everythingin action.

To summarize, we’ll discuss these topics inthis chapter:

  • Prerequisites
  • Installing SvelteKit
  • SvelteKit’sProject Structure
  • Hello, World!”

After covering all of this material, you should be reasonably comfortable setting up a new SvelteKit application for yournext project.

Technical requirements

The complete code for this chapter is available on GitHubat:https://github.com/PacktPublishing/SvelteKit-Up-and-Running/tree/main/chapters/chapter01

Prerequisites

To get the most out of this book and ensure you retain the information provided, it is recommended to work alongside the material as you read it. Type the commands and code shown into your project, but also feel free to experiment. To do this effectively, you will need a computer running Windows, macOS, or a Linux-based operating system as well as access to a terminal or command-line interface. Most modern computer hardware capable of running the latest versions of theaforementioned operating systems should be sufficient for your needs. Specifically, you’ll need a system with a minimum of 1 GB of RAM and at least a 1.6 GHz processor. This should work just fine for developing with SvelteKit, though performance may vary for youroperating system.

Like many other web development projects, you’ll also need a web browser. The latest version of Firefox, Chrome, or Safari is recommended. You will also need to install Node.js. It is recommended to use thelatestLong-Term Support (LTS) version, which, at the time of writing this book, is version 18. An alternative and often easier method of managing Node.js installation is theNode Version Manager (NVM) project. It allows users to easily install and change versions of Node.js. See the end of this chapter for resources related to both Node.js and NVM. Alongside that, you will also need a package manager. This book will utilizenpm as it is available with a standard Node.js installation. It is possible to useyarn in place ofnpm, but it is probably easier to just usenpm. If you’re worried about performance,pnpm willalso work.

The final tool required will be a text editor orIntegrated Development Environment (IDE). The Svelte community supports many editors, but the official SvelteKit documentation recommends usingVisual Studio Code (VS Code) alongwith the Svelte extension. While it is not required, it can certainly ease the pain of dealing with the different syntaxes found in Svelte components. To install Svelte for VS Code, launch VS Code Quick Open withCtrl +P, typeext install svelte.svelte-vscode, andhitEnter.

In summary, you will needthe following:

  • A macOS, Windows, orLinux-based computer
  • A modern web browser (Firefox, Chrome,or Safari)
  • Terminal access
  • Node.js18+ LTS
  • A package manager (npm comes installedwith Node.js)
  • A text editor/IDE (with the recommendedSvelte extension)

Installing SvelteKit

To begin, openyour terminal or command-line interface and navigate to a directory where you are comfortable starting a new project. From there, we’ll run three simple commands. The first will create a new SvelteKit project with various prompts to initialize the application, the second will install dependencies, and the third will start ourdevelopment server:

npm create svelte@latestnpm installnpm run dev

When running the first command, you’ll be presented with several prompts. The first of these will ask you to installcreate@svelte to which your response should bey for yes. When prompted to select a directory to install the project in, leave the option blank to use the current directory (or specify the directory if you’d prefer to). You’ll then be asked which template to use. We’ll be working primarily with the optionSkeleton project but feel free to come back and give theSvelteKit demo app a try in another directory atyour convenience.

The next prompt pertains toTypeScript (TS) usage, for which SvelteKit has excellent support. However, to keep the focus of this book on SvelteKit itself and to appeal to developers that may not yet be familiar with TS, we will be using plain JavaScript. As such, to properly follow along with this text, you should selectNo. If you feel comfortable enough with TS, then by all means, selectYes. Be sure to selectYes for ESLint and Prettier support as they will very likely save you headaches and further improve your development experience. It is also recommended to include supported testing packages, but this book will not be coveringtesting strategies.

After installing the project dependencies withnpm install, we runnpm run dev, which starts our development server. The output from the command should look similar to that shown inFigure 1.1.

Figure 1.1 – Showing the output from the Vite development server

Figure 1.1 – Showing the output from the Vite development server

Notice how quickly Vite starts our development server. Even though this is a bare-bones application, other bundling tools would have taken multiple seconds whereas Vite was ready in under one second. As shown in the output displayed in the terminal, the site can be viewed by navigating tohttp://localhost:5173/ in your browser. If you would like to access the site from a device other than your development machine, for instance, on a mobile device, then you may append–-host to the appropriatenpm script found in thepackage.json project file. Under thescripts entry, the new command would look like"dev": "vitedev –-host".

We’ve just covered the installation process for SvelteKit. At this point, it should be trivial for you to install your own SvelteKit-based project. We’ve covered how the various prompts from thecreate@svelte package allow you to customize the project to your liking. Now, let’s take a look at how a typical SvelteKit projectis structured.

SvelteKit’s Project Structure

Onceyou have installed a new SvelteKit project, open the projectdirectory in your preferred editor. Within that folder, you’ll notice files that are commonly found in the root project folder of JavaScript applications such aspackage.json,.gitignore, andREADME.md, as well as configuration files pertaining to SvelteKit (svelte.config.js) and Vite (vite.config.js). You’ll also notice three subfolders:static/,tests/, andsrc/. Let’s look at them in detail in thefollowing sections.

static/

This folder is where you may place static assets such asrobots.txt (your guidelines for search engine site crawlers), static images such as favicons, or even a global CSS style sheet. These files should be able to be served “as is.” Files located in this folder will be available to your application logic as if they existed in the root folder of your project, that is,/robots.txt. You can also access them by prefixing the file path with%sveltekit.assets%. Note that if files here are changed, you may need to manually refresh the page to see changes. In some cases, you may even need to restart your development server as Vite has strong opinions about caching. You should not attempt to access files included in this directory programmatically. Rather, the paths should be “hardcoded” wherever the assets hereare included.

tests/

Logically, tests from the Playwright package (included in the various prompts we saidyes to) are located here. To run the Playwright browser test, use the npm scriptnpm run test. Unit tests from Vitest will be included alongside your source code. For example, if you included a file calledutilities.js, unit tests for it would live alongside it asutilities.test.js. Vitest is a package from the developers of Vite that enables simple testing for Vite-based applications.Test-Driven Development (TDD) is an excellent practice to follow to ensure code performs as it is expected to. However, it is beyond the scope ofthis book.

src/

You willbe spending most of your time working in this folder as this is where the core logic for a SvelteKit application lives. There are a few files and directories that should be taken note of atthis time:

  • routes/
  • lib/
  • app.html

routes/

The firstsubfolder to take note of issrc/routes/. This directory will contain most files necessary for managing SvelteKit’s file-based routing mechanism. Its sibling foldersrc/params/ will be covered later on, but for now, assume most logic related to managing the routes of your application is located here. As a brief example, if you’d like to add a static “about” page, then you would do so by creatingsrc/routes/about/+page.svelte containing the appropriate markupand text.

lib/

Svelte components and various other utilities can be placed in thesrc/lib/ subfolder. This folder may not be present in the skeleton project template so you’ll have to add it on your own. It will be shown in the SvelteKit demo app. By placing your components here, you can easily reference them inimport statements later on as the$lib/ alias will be available throughoutthe application.

app.html

There aremore files to cover that we will address later on, but for now, the final mention isapp.html. This file serves as the base for the rest of your application to build off of. When opened, you’ll notice it contains references to%sveltekit.head%, which SvelteKit uses for injecting various script and link tags, and%sveltekit.body%, which is used for injecting the markup generated forthe application.

To recap, thestatic/ directory contains files that don’t frequently change,tests/ contains tests from the Playwright package, andsrc/ contains the source code of your project. Most Svelte components and other utilities you create can be placed atsrc/lib/ so as to be easily accessed via the$lib/ alias inimport statements. If you’d like to add a new route to your application URL, you can do so by creating a+page.svelte file inside a directory with the corresponding name atsrc/routes/. And finally, your application will need a base to build off. That’s whereapp.html comes in. I’m sure you’re eager to finally build something, so let’sdo it.

Hello World Application

Now that weknow a bit about what we’re looking at in a freshly initialized SvelteKit project, it seems appropriate to build a “Hello, World!” application. We’ll begin by openingsrc/routes/+page.svelte in our editor. At this point, it should only contain basicHTML code:

<h1>Welcome to SvelteKit</h1><p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>

Since this file lives directly inside thesrc/routes/ directory and not a sub-directory, it is available in the browser as the URL's root route (i.e.,/). If we were to create a new folder within the routes directory (i.e.,src/routes/hello/) and place another+page.svelte file inside of that (i.e.,src/routes/hello/+page.svelte), then we would make the/hello route available as a valid URL for our app. We’ll cover more advanced routing techniques in later chapters, but for now, just know that to add a new route, you’ll need to create a folder using the desired route name in theroutes directory as well as a+page.svelte file.

Svelte Components

Readers familiar with Svelte will have noticed that the+page.svelte file extension is that of a Svelte component. That’s becauseit is a Svelte component! As such, we can adjust the HTML in it, customize the look with CSS in<style> tags, write JS inside of<script> tags, and import other Svelte components. If you’re unfamiliar with Svelte components, it’s recommended to learn at least the basics before continuing further. Check outSvelte 3 Up and Running byAllessandro Segala or visit the official Svelte website (https://svelte.dev) formore information.

Let’s make some changes tosrc/routes/+page.svelte to see what’s happening. Change the inner text of the<h1> tag to readHello, World!,like so:

<h1>Hello, World!</h1>

Thanks to Vite, the page in our browser is updated immediately after saving. If your setup has dual monitors available with code shown on one and your browser on the other, you’ll quickly see how valuableHot Module Replacement (HMR) can be. The change we’ve made is all well and good, but it isn’t really a “Hello, World!” application if users can’t change the text. For a true “Hello, World!” example, we need to show some text that has been provided by the user. The following code is an implementation showingjust that:

<script>  let name = 'World';</script><form>  <label for="name" >What is your name?</label>  <input type="text" name="name" bind:value={name} /></form><h1>Hello, {name}!</h1>

This simple Svelte component creates a variable namedname with the default value of “World.” From there, the HTML gives us a basic form binding the text input value to our variable and outputting the text inside an HTML<h1> tag. Thanks to Svelte’s reactivity and the binding of the text input value to thename variable, the text provided is shown immediately, even as itis typed.

Figure 1.2 – The output from our “Hello, World!” component

Figure 1.2 – The output from our “Hello, World!” component

Summary

In this chapter, we discussed some of the prerequisite knowledge and tools needed for getting started with SvelteKit. You likely already had a computer running a capable operating system with a browser installed. You may even have had the latest LTS version of Node.js installed with thenpm package manager. We also briefly touched on getting your editor prepared by installingSvelte-specific extensions.

We continued by covering the installation process of SvelteKit. The prompts provided during the installation make setting up a new SvelteKit project simple and easily customized to adeveloper’s liking.

After the project installation, we took a high-level look at SvelteKit’s project structure. While thetests/ andstatic/ directories are fairly straightforward, some nuances lie within thesrc/ folder. For instance, keeping various Svelte components and other utilities in thesrc/lib/ folder can help keep a project from becoming difficult to navigate. Components located there are also easily accessed across application code via the$lib/ alias.

We also created a rudimentary “Hello, World!” application. It showcased how simple SvelteKit makes it to start building an applicationfrom scratch.

In the next chapter, we’ll go over some of the various configuration options you may need to tweak in both SvelteKit and Vite to customize them to suityour needs.

Left arrow icon

Page1 of 8

Right arrow icon
Download code iconDownload Code

Key benefits

  • Develop JavaScript applications with an intuitive and beginner-friendly framework
  • Grasp the core concepts of SvelteKit effortlessly with real-world examples
  • Discover how SvelteKit minimizes obstacles in building modern web applications, enhancing productivity and efficiency

Description

The JavaScript ecosystem has grown vast, complex, and daunting for newcomers. Fortunately, SvelteKit has emerged, simplifying the process of building JavaScript-based web applications. This book aims to demystify SvelteKit, making it as approachable as it makes web app development.With SvelteKit Up and Running you’ll be introduced to the philosophy and technologies underlying SvelteKit. First, you’ll follow a standard educational programming approach, progressing to a 'Hello World' application. Next, you’ll explore the fundamental routing techniques, data loading management, and user submission, all through real-world scenarios commonly encountered in day-to-day development, before discovering various adapters employed by SvelteKit to seamlessly integrate with diverse environments. You’ll also delve into advanced concepts like dynamic route management, error handling, and leveraging SvelteKit to optimize SEO and accessibility.By the end of this book, you’ll have mastered SvelteKit and will be well-equipped to navigate the complexities of web app development.

Who is this book for?

This book is for web developers aiming to enhance their SvelteKit skills. Whether you're selecting your first JavaScript framework or seeking to stand out among job applicants by adding the latest technology to your resume, this book is your ultimate guide to becoming a SvelteKit master. A solid understanding of HTML, CSS, JavaScript, and Svelte is a must.

What you will learn

  • Gain a comprehensive understanding of the core technologies of SvelteKit
  • Dive deep into SvelteKit's file-based routing system and uncover basic and advanced concepts
  • Master code organization in SvelteKit through effective data-loading techniques
  • Elevate your application's visibility by incorporating SEO and accessibility
  • Streamline the deployment process of your SvelteKit apps by using adapters
  • Optimize your SvelteKit app by exploring various configuration and tooling options

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date :Jul 28, 2023
Length:166 pages
Edition :1st
Language :English
ISBN-13 :9781804619650
Languages :

What do you get with eBook?

Product feature iconInstant access to your Digital eBook purchase
Product feature icon Download this book inEPUB andPDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature iconDRM FREE - Read whenever, wherever and however you want
Product feature iconAI Assistant (beta) to help accelerate your learning
OR

Contact Details

Modal Close icon
Payment Processing...
tickCompleted

Billing Address

Product Details

Publication date :Jul 28, 2023
Length:166 pages
Edition :1st
Language :English
ISBN-13 :9781804619650
Category :
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99billed monthly
Feature tick iconUnlimited access to Packt's library of 7,000+ practical books and videos
Feature tick iconConstantly refreshed with 50+ new titles a month
Feature tick iconExclusive Early access to books as they're written
Feature tick iconSolve problems while you work with advanced search and reference features
Feature tick iconOffline reading on the mobile app
Feature tick iconSimple pricing, no contract
€189.99billed annually
Feature tick iconUnlimited access to Packt's library of 7,000+ practical books and videos
Feature tick iconConstantly refreshed with 50+ new titles a month
Feature tick iconExclusive Early access to books as they're written
Feature tick iconSolve problems while you work with advanced search and reference features
Feature tick iconOffline reading on the mobile app
Feature tick iconChoose a DRM-free eBook or Video every month to keep
Feature tick iconPLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick iconExclusive print discounts
€264.99billed in 18 months
Feature tick iconUnlimited access to Packt's library of 7,000+ practical books and videos
Feature tick iconConstantly refreshed with 50+ new titles a month
Feature tick iconExclusive Early access to books as they're written
Feature tick iconSolve problems while you work with advanced search and reference features
Feature tick iconOffline reading on the mobile app
Feature tick iconChoose a DRM-free eBook or Video every month to keep
Feature tick iconPLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick iconExclusive print discounts

Frequently bought together


SvelteKit Up and Running
SvelteKit Up and Running
Read more
Jul 2023166 pages
Full star icon4.4 (11)
eBook
eBook
€17.99€20.99
€26.99
Svelte with Test-Driven Development
Svelte with Test-Driven Development
Read more
Jun 2023250 pages
Full star icon4.9 (10)
eBook
eBook
€17.99€20.99
€26.99
Real-World Svelte
Real-World Svelte
Read more
Dec 2023282 pages
Full star icon4.5 (20)
eBook
eBook
€20.99€23.99
€23.98€29.99
Stars icon
Total77.9683.976.01saved
SvelteKit Up and Running
€26.99
Svelte with Test-Driven Development
€26.99
Real-World Svelte
€23.98€29.99
Total77.9683.976.01 savedStars icon

Table of Contents

17 Chapters
Part 1 – Getting Started with SvelteKitChevron down iconChevron up icon
Part 1 – Getting Started with SvelteKit
Chapter 1: Initial Setup and Project StructureChevron down iconChevron up icon
Chapter 1: Initial Setup and Project Structure
Technical requirements
Prerequisites
Installing SvelteKit
SvelteKit’s Project Structure
Hello World Application
Summary
Resources
Chapter 2: Configurations and OptionsChevron down iconChevron up icon
Chapter 2: Configurations and Options
Technical requirements
Configuring SvelteKit
Configuring Vite
Summary
Further Reading
Chapter 3: Compatibility with Existing StandardsChevron down iconChevron up icon
Chapter 3: Compatibility with Existing Standards
Technical requirements
Fetch
FormData
URL
Summary
Resources
Part 2 – Core ConceptsChevron down iconChevron up icon
Part 2 – Core Concepts
Chapter 4: Effective Routing TechniquesChevron down iconChevron up icon
Chapter 4: Effective Routing Techniques
Technical requirements
Creating Dynamic Pages
Creating Server Pages
API Endpoints
Creating Layouts
Summary
Resources
Chapter 5: Deep Dive into Data LoadingChevron down iconChevron up icon
Chapter 5: Deep Dive into Data Loading
Technical requirements
Loading in Clients
Loading in Layouts
Destructuring RequestEvent
Summary
Resources
Chapter 6: Forms and Data SubmissionChevron down iconChevron up icon
Chapter 6: Forms and Data Submission
Technical requirements
Form Setup
Analyzing Actions
Enhancing Forms
Summary
Resources
Chapter 7: Advanced Routing TechniquesChevron down iconChevron up icon
Chapter 7: Advanced Routing Techniques
Technical requirements
Using optional parameters
Rest parameters
Matching, sorting, and encoding – oh, my!
Advanced layouts
Summary
Resources
Part 3 – Supplemental ConceptsChevron down iconChevron up icon
Part 3 – Supplemental Concepts
Chapter 8: Builds and AdaptersChevron down iconChevron up icon
Chapter 8: Builds and Adapters
Technical requirements
Creating a Build
Adapting the app
Summary
Resources
Chapter 9: Hooks and Error HandlingChevron down iconChevron up icon
Chapter 9: Hooks and Error Handling
Technical requirements
Using Hooks
Error Handling
Summary
Resources
Chapter 10: Managing Static AssetsChevron down iconChevron up icon
Chapter 10: Managing Static Assets
Technical requirements
Importing Assets
Additional Information
Summary
Resources
Chapter 11: Modules and SecretsChevron down iconChevron up icon
Chapter 11: Modules and Secrets
Technical requirements
SvelteKit Module Summaries
Keeping secrets safe
Summary
Resources
Chapter 12: Enhancing Accessibility and Optimizing SEOChevron down iconChevron up icon
Chapter 12: Enhancing Accessibility and Optimizing SEO
Technical requirements
Compile-Time Checks
Announcing routes
Accessibility enhancements
SEO Tips
Summary
Resources
IndexChevron down iconChevron up icon
Index
Why subscribe?
Other Books You May EnjoyChevron down iconChevron up icon
Other Books You May Enjoy
Packt is searching for authors like you
Share Your Thoughts
Download a free PDF copy of this book

Recommendations for you

Left arrow icon
Full-Stack Flask and React
Full-Stack Flask and React
Read more
Oct 2023408 pages
Full star icon3.8 (5)
eBook
eBook
€20.99€23.99
€29.99
C# 13 and .NET 9 – Modern Cross-Platform Development Fundamentals
C# 13 and .NET 9 – Modern Cross-Platform Development Fundamentals
Read more
Nov 2024828 pages
Full star icon4.4 (5)
eBook
eBook
€26.98€29.99
€37.99
Real-World Web Development with .NET 9
Real-World Web Development with .NET 9
Read more
Dec 2024578 pages
Full star icon3.5 (4)
eBook
eBook
€26.98€29.99
€37.99
Django 5 By Example
Django 5 By Example
Read more
Apr 2024820 pages
Full star icon4.6 (40)
eBook
eBook
€26.98€29.99
€37.99
React and React Native
React and React Native
Read more
Apr 2024518 pages
Full star icon4.3 (10)
eBook
eBook
€23.99€26.99
€32.99
Scalable Application Development with NestJS
Scalable Application Development with NestJS
Read more
Jan 2025612 pages
Full star icon4.5 (6)
eBook
eBook
€20.99€23.99
€29.99
C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals
C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals
Read more
Nov 2023828 pages
Full star icon4.4 (74)
eBook
eBook
€31.99€35.99
€44.99
Responsive Web Design with HTML5 and CSS
Responsive Web Design with HTML5 and CSS
Read more
Sep 2022504 pages
Full star icon4.5 (57)
eBook
eBook
€23.99€26.99
€33.99
Modern Full-Stack React Projects
Modern Full-Stack React Projects
Read more
Jun 2024506 pages
Full star icon4.8 (9)
eBook
eBook
€23.99€26.99
€33.99
Learning Angular
Learning Angular
Read more
Jan 2025494 pages
Full star icon4 (6)
eBook
eBook
€23.99€26.99
€33.99
Right arrow icon

Customer reviews

Top Reviews
Rating distribution
Full star iconFull star iconFull star iconFull star iconHalf star icon4.4
(11 Ratings)
5 star54.5%
4 star27.3%
3 star18.2%
2 star0%
1 star0%
Filter icon Filter
Top Reviews

Filter reviews by




Tomáš DaněkJul 20, 2024
Full star iconFull star iconFull star iconFull star iconFull star icon5
Feefo Verified reviewFeefo
MikeSep 01, 2023
Full star iconFull star iconFull star iconFull star iconFull star icon5
Before diving into this book you should have good knowledge of Svelte and REPL. This book helps to fill in knowledge gaps that the docs for those don't really address - while also providing an experienced reference for good code practices. This isn't a book for beginners, but it is a valuable reference tool for those utilizing Svelte.
Amazon Verified reviewAmazon
SvelteKit ProAug 11, 2023
Full star iconFull star iconFull star iconFull star iconFull star icon5
"SvelteKit Up and Running" offers a solid supplementary resource for those diving into the world of SvelteKit. While I wouldn't consider it a replacement for the official documentation or interactive tutorials, this book does manage to carve a niche for itself as a helpful companion to those resources.The book's strongest suit is its ability to provide a cohesive and structured learning path. It's a great read for those who want to deepen their understanding of SvelteKit beyond the basics. The author's approach to explaining concepts is clear and concise, making it easy to follow along even for newcomers.One aspect worth noting is that "SvelteKit Up and Running" tends to assume a certain level of familiarity with web development and Svelte concepts. As such, I would recommend readers to have a foundational understanding of Svelte before delving into this book.One area where the book truly shines is its practical examples and real-world applications. These scenarios offer readers a chance to see how SvelteKit can be leveraged to solve common web development challenges. Additionally, the inclusion of best practices and coding tips adds significant value, making this book a valuable resource for developers aiming to write efficient and maintainable code.However, it's important to acknowledge that the book might not be the best starting point for complete beginners. For those who are new to Svelte or web development in general, starting with the official documentation and interactive tutorials would be a more recommended approach.In conclusion, "SvelteKit Up and Running" is a commendable addition to the learning toolkit of SvelteKit enthusiasts. While it may not be the first choice for beginners, it serves as a supportive guide for those who have already dipped their toes into the world of Svelte. Its practical examples, coding insights, and well-structured approach make it a valuable resource for developers aiming to level up their SvelteKit skills.
Amazon Verified reviewAmazon
Jason LouvAug 14, 2023
Full star iconFull star iconFull star iconFull star iconFull star icon5
This is an excellent and timely book. I pre-ordered it and got it as soon as it came out, and I'm happy I did. Yes, as others have pointed out, you should start with the official SvelteKit docs and REPL. But in practice, they're not enough. This book fills in a lot of the blanks and brings a lot of valuable tidbits to the table. Even if you've worked through the docs, seeing the same material presented in a different format with a different take on it and different details is phenomenally useful. Well done Dylan!
Amazon Verified reviewAmazon
aAug 05, 2023
Full star iconFull star iconFull star iconFull star iconFull star icon5
The book is excellent for beginners as it goes through the fundamentals of setting up a web app. It goes over concepts such as webhooks and SEO which are great for first-time developers. With this in mind, I would have loved to see some code-along projects and more detailed explanations of how to build endpoints, how they work, and best practices.
Amazon Verified reviewAmazon
  • Arrow left icon Previous
  • 1
  • 2
  • 3
  • Arrow right icon Next

People who bought this also bought

Left arrow icon
C# 11 and .NET 7 – Modern Cross-Platform Development Fundamentals
C# 11 and .NET 7 – Modern Cross-Platform Development Fundamentals
Read more
Nov 2022818 pages
Full star icon4.1 (54)
eBook
eBook
€26.98€29.99
€37.99
C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals
C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals
Read more
Nov 2023828 pages
Full star icon4.4 (74)
eBook
eBook
€31.99€35.99
€44.99
Responsive Web Design with HTML5 and CSS
Responsive Web Design with HTML5 and CSS
Read more
Sep 2022504 pages
Full star icon4.5 (57)
eBook
eBook
€23.99€26.99
€33.99
React and React Native
React and React Native
Read more
May 2022606 pages
Full star icon4.6 (17)
eBook
eBook
€26.98€29.99
€37.99
Building Python Microservices with FastAPI
Building Python Microservices with FastAPI
Read more
Aug 2022420 pages
Full star icon3.9 (9)
eBook
eBook
€25.99€28.99
€35.99
Right arrow icon

About the author

Profile icon Dylan Hildenbrand
Dylan Hildenbrand
LinkedIn iconGithub icon
Dylan Hildenbrand is a full-stack web developer with a penchant for understanding how things work. Over the past decade, that desire to know “how things work” has led Dylan to a robust skillset ranging from front and back-end development to database administration, Linux server administration, and automation of application deployments and testing procedures. Dylan graduated from Minot State University in 2012 with a degree in Computer Science.When not proselytizing to strangers about switching to Linux or Vim, Dylan enjoys administering and automating his “homelab,” playing video games, playing board games with his wife, wrestling with his two children, and writing about web development on his website.
Read more
See other products by Dylan Hildenbrand
Getfree access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook?Chevron down iconChevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website?Chevron down iconChevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook?Chevron down iconChevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support?Chevron down iconChevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks?Chevron down iconChevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook?Chevron down iconChevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.


[8]ページ先頭

©2009-2025 Movatter.jp