We may earn an affiliate commission when you visit our partners.
Course image
Armin Sarajlic

SvelteKit is a modern web application framework that simplifies frontend development by enabling developers to build highly efficient and reactive web apps using a component architecture.

Read more

SvelteKit is a modern web application framework that simplifies frontend development by enabling developers to build highly efficient and reactive web apps using a component architecture.

SvelteKit is known for its exceptional speed primarily due to its compilation-based approach. Unlike traditional JavaScript frameworks, SvelteKit compiles the components at build time, generating highly optimized and minimal JavaScript code. This results in faster load times and improved runtime performance, as there is no need for a virtual DOM or runtime framework to manage component updates. Additionally, SvelteKit leverages fine-grained reactivity, only updating the parts of the DOM that actually change, reducing unnecessary work and improving performance.

SvelteKit uses its own built-in compiler to transform Svelte components into highly optimized JavaScript code during the build process. This custom compiler is a fundamental part of the Svelte framework's approach to generating efficient and minimal JavaScript for web applications.

In this comprehensive course, you will gain a clear understanding of SvelteKit's core principles, providing you with the essential knowledge to effectively work with this cutting-edge framework. Learning by example is an effective approach, and throughout this course, we will explore SvelteKit's extensive feature set by building a fully-fledged e-commerce web store from the ground up. You will learn how to use key technologies such as Svelte, SvelteKit, Prisma ORM, PostgreSQL, TailwindCSS, and the integration of the Stripe payment gateway.

With over six years of experience working extensively with React and completing numerous projects, my initial exposure to SvelteKit was both fun and exciting. What sets SvelteKit apart and what I personally appreciate is its simplicity, avoiding complex, framework-specific intricacies that can often be time-consuming. Instead, SvelteKit encourages the application of fundamental web development principles you already possess. Learning Svelte not only equips you with framework-specific skills but also enhances your overall web development capabilities.

This course welcomes participants with a basic understanding of JavaScript, making prior experience with Svelte unnecessary. While familiarity with other frontend frameworks and libraries like React, NextJS, or Vue can help with comprehension of certain concepts, it is by no means a prerequisite for successful completion of this course.

Enroll now

What's inside

Learning objectives

  • Master the foundamentals of svelte and sveltekit (svelte framework)
  • Create a full-stack e-commerce web application
  • Accepting payments on your web shop using stripe as a payment gateway
  • Connecting sveltekit projects to a database
  • Manipulating the database using prisma orm

Syllabus

Introduction
Course requirements
Branching strategy
What is Svelte and SvelteKit?
Read more
What is Server Side Rendering (SSR)?
What is a payment gateway?
Register to the Stripe payment gateway, create a store and add products
Stripe account setup
Adding products on Stripe
Creating all the shop products on Stripe
Set up the project and understand the project structure
SvelteKit project setup
SvelteKit project structure
What is Vite?
Understand what TailwindCSS does and install it into the SvelteKit project
What is TailwindCSS?
Installing TailwindCSS in a SvelteKit project
Set up a PostgreSQL database with Prisma ORM with the SvelteKit project, create models, maniuplate the database, etc.
PostgreSQL database setup
What is Prisma ORM?
Installing Prisma in a SvelteKit project
Connecting Prisma to a PostgreSQL database
Creating the product model
Relationships between Prisma models
Creating the Category model
Populating the Category table
Populating the Products table
Understand how to create components and how they work in SvelteKit
Components in SvelteKit
Creating the Header component
Creating the CartButton component
Creating the Footer component
Understand how SvelteKit's built-in routing system works and what all the different route files are for
Introduction to routing in SvelteKit
Page files in SvelteKit's router
Creating the E-Commerce pages
Error files in SvelteKit's router
SvelteKit API routes
Reading data with Prisma
Creating the GET products API endpoint
Layouts in SvelteKit
Creating a layout and styling the pages
Loading the products in the index page
Implement the e-commerce website's home (index) page
Conditional Rendering in SvelteKit
No products found - Fallback message
Rendering Loops in SvelteKit (#each logic block)
Looping the products
Creating the ShopCard component
Implement all the shop categories in the web app, that were previously added into the database
Creating the GET categories API endpoint
Creating the CategoryItem component
Categories index page
Creating the categories layout
Create the GET products by category API endpoint
Reactivity in Svelte
Dynamic category pages
Implement the dynamic product pages
Creating the GET product by ID API endpoint
Product page markup and styling
Loading the product details data
Implement the cart functionality by using svelte stores for state management
Cart page markup and styling
Creating the CartItem component
The cart system
CartButton component improvements
Integrate the Stripe payment gateway into the sveltekit project
Payment status pages markup and styling
Creating the Checkout API endpoint
Invoking the Stripe checkout from the Cart page
Testing the Stripe payment

Good to know

Know what's good
, what to watch for
, and possible dealbreakers
Explores fundamental concepts of SvelteKit, which has become a popular framework in web development
Develops skills in building highly efficient and reactive web apps through a component-based architecture
Taught by instructors with six years of experience in web development
Helps learners build a comprehensive and fully-fledged e-commerce web store from the ground up
Provides a practical, hands-on approach through project-based learning
Requires only a basic understanding of JavaScript, making it accessible to a wider audience

Save this course

Save SvelteKit Framework by Example: Full-Stack Ecommerce Website to your list so you can find it easily later:
Save

Activities

Be better prepared before your course. Deepen your understanding during and after it. Supplement your coursework and achieve mastery of the topics covered in SvelteKit Framework by Example: Full-Stack Ecommerce Website with these activities:
Review JavaScript basics
Strengthen your JavaScript foundation to enhance your understanding of SvelteKit.
Browse courses on JavaScript
Show steps
  • Review JavaScript syntax.
  • Practice writing JavaScript code.
  • Solve JavaScript coding challenges.
Follow a SvelteKit tutorial
Gain a foundational understanding of SvelteKit by following a guided tutorial.
Show steps
  • Find a comprehensive SvelteKit tutorial.
  • Follow the steps in the tutorial.
  • Build the SvelteKit application as per the tutorial.
Practice using SvelteKit components
Develop proficiency in using SvelteKit components to build web applications.
Show steps
  • Create a new SvelteKit project.
  • Create a Svelte component.
  • Use the Svelte component in a SvelteKit page.
  • Style the Svelte component using CSS.
Five other activities
Expand to see all activities and additional details
Show all eight activities
Join a SvelteKit study group
Enhance your learning by collaborating with peers and discussing SvelteKit concepts.
Show steps
  • Find or create a SvelteKit study group.
  • Meet regularly with the study group.
  • Discuss SvelteKit topics and work on projects together.
Build a SvelteKit application
Gain hands-on experience by creating a complete SvelteKit application from scratch.
Show steps
  • Plan the application's features and structure.
  • Develop the SvelteKit application.
  • Test and debug the application.
  • Deploy the application to a hosting platform.
Participate in a SvelteKit hackathon
Demonstrate your SvelteKit skills and collaborate with others to build innovative web applications.
Show steps
  • Find a SvelteKit hackathon.
  • Form a team or work individually.
  • Develop a SvelteKit application during the hackathon.
  • Submit your application for evaluation.
Seek mentorship from an experienced SvelteKit developer
Gain valuable guidance and insights from someone who has successfully used SvelteKit.
Show steps
  • Identify potential mentors.
  • Reach out to mentors and request their guidance.
  • Regularly connect with your mentor and seek their advice.
Contribute to a SvelteKit open-source project
Gain practical experience and contribute to the SvelteKit community by participating in an open-source project.
Show steps
  • Find a SvelteKit open-source project.
  • Identify an issue or feature to work on.
  • Create a pull request with your contribution.

Career center

Learners who complete SvelteKit Framework by Example: Full-Stack Ecommerce Website will develop knowledge and skills that may be useful to these careers:
E-commerce Manager
E-commerce Managers are responsible for the overall management and operation of e-commerce businesses. This course is highly relevant to E-commerce Managers as it provides a comprehensive understanding of the technical aspects of building and managing an e-commerce website. By building a full-stack e-commerce website, you'll develop the practical skills and knowledge necessary to succeed in this role.
Full-Stack Developer
Full-Stack Developers are responsible for both the front-end and back-end development of websites and applications. The comprehensive nature of this course, covering SvelteKit, Prisma ORM, PostgreSQL, TailwindCSS, and Stripe, will equip you with the full stack of skills necessary to succeed as a Full-Stack Developer. You'll gain proficiency in building complete web solutions, from the user interface to database management.
Webmaster
Webmasters are responsible for the maintenance and administration of websites. This course is highly relevant to Webmasters as it provides a comprehensive understanding of the technical aspects of building and managing a website. By building a full-stack e-commerce website, you'll develop the practical skills and knowledge necessary to succeed in this role.
Front-End Developer
Front-End Developers are responsible for building and designing the user interface of a website or application. With a strong foundation in SvelteKit, you'll be able to craft efficient, reactive, and visually appealing websites and applications. This course's hands-on approach, coupled with its focus on building a full-stack e-commerce website, will provide you with the practical skills and knowledge needed to excel as a Front-End Developer.
Web Developer
Web Developers are responsible for all aspects of website development, including design, programming, and maintenance. This course provides a solid foundation in SvelteKit and other essential technologies, giving you the skills to build and manage high-quality websites. By building a full-stack e-commerce website, you'll gain hands-on experience in all phases of web development, preparing you for success as a Web Developer.
Software Engineer
Software Engineers are responsible for designing, developing, and maintaining software applications. While this course focuses specifically on web development, the underlying principles and skills, such as understanding SvelteKit and database integration, are highly transferable to software engineering. By completing this course, you'll build a strong foundation in software development concepts and practices.
Database Administrator
Database Administrators are responsible for the management and maintenance of databases. This course may be useful for Database Administrators who want to gain experience with PostgreSQL and Prisma ORM. By setting up a PostgreSQL database and using Prisma ORM to manipulate the database in the context of building an e-commerce website, you'll gain practical skills in database management and administration.
UX Designer
UX Designers are responsible for designing the user experience of websites and applications. This course may be useful for UX Designers who want to gain a deeper understanding of the technical aspects of web development. By learning SvelteKit and building a fully functional e-commerce website, you'll develop a better appreciation for the challenges and possibilities of front-end development, enabling you to create more effective and user-centric designs.
Technical Writer
Technical Writers are responsible for creating and maintaining documentation for software and technical products. This course may be useful for Technical Writers who want to gain a better understanding of the technical aspects of web development. By learning SvelteKit and the process of building a full-stack e-commerce website, you'll develop a better appreciation for the challenges and possibilities of software development, enabling you to create more effective and accurate technical documentation.
Product Manager
Product Managers are responsible for overseeing the development and launch of products. This course may be useful for Product Managers who want to gain a deeper understanding of the technical aspects of building web products. By learning SvelteKit and the process of building a full-stack e-commerce website, you'll develop a better appreciation for the challenges and possibilities of software development, enabling you to make more informed decisions and effectively manage technical teams.
Project Manager
Project Managers are responsible for planning, executing, and delivering projects. This course may be useful for Project Managers who want to gain a deeper understanding of the technical aspects of web development projects. By learning SvelteKit and the process of building a full-stack e-commerce website, you'll develop a better appreciation for the challenges and possibilities of software development, enabling you to more effectively manage technical projects.
Technical Support Specialist
Technical Support Specialists are responsible for providing technical support to users of software and hardware. This course may be useful for Technical Support Specialists who want to gain a better understanding of the technical aspects of web development. By learning SvelteKit and the process of building a full-stack e-commerce website, you'll develop a better appreciation for the challenges and possibilities of software development, enabling you to provide more effective technical support.
Business Analyst
Business Analysts are responsible for analyzing business processes and identifying opportunities for improvement. This course may be useful for Business Analysts who want to gain a better understanding of the technical aspects of e-commerce. By building a full-stack e-commerce website, you'll develop a better appreciation for the challenges and possibilities of e-commerce, enabling you to make more informed recommendations and drive business growth.
Marketing Manager
Marketing Managers are responsible for developing and executing marketing campaigns. This course may be useful for Marketing Managers who want to gain a deeper understanding of the technical aspects of e-commerce. By building a full-stack e-commerce website, you'll develop a better appreciation for the challenges and possibilities of e-commerce, enabling you to create more effective marketing campaigns and drive traffic and sales.
Sales Manager
Sales Managers are responsible for leading and managing sales teams. This course may be useful for Sales Managers who want to gain a deeper understanding of the technical aspects of e-commerce. By building a full-stack e-commerce website, you'll develop a better appreciation for the challenges and possibilities of e-commerce, enabling you to better support your sales team and drive sales growth.

Reading list

We've selected six books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in SvelteKit Framework by Example: Full-Stack Ecommerce Website.
Stripe's official documentation provides detailed information on their payment gateway, including setup, integration, API reference, and best practices. It valuable resource for understanding and implementing Stripe in your e-commerce application.
Provides a solid foundation in JavaScript, covering the latest features, such as ES6 and beyond. If you have a basic understanding of JavaScript, this book can help you refresh your knowledge and solidify your understanding of the fundamentals before diving into SvelteKit.
This classic book is not specific to SvelteKit or any particular technology. However, it offers valuable insights into software development best practices, maintainability, and craftsmanship. The principles discussed in this book can be applied to any software development project, including SvelteKit applications.
Provides a collection of reusable patterns for JavaScript development. By studying these patterns, you can improve the design and quality of your SvelteKit applications. The book covers topics such as object-oriented programming, functional programming, and design patterns.
Provides in-depth knowledge of CSS and its advanced features. If you want to take your SvelteKit application's design to the next level, this book can help you understand the nuances of CSS and create visually stunning and user-friendly interfaces.
Is not specific to any particular technology or framework but provides a comprehensive overview of unit testing best practices. As you build SvelteKit applications, understanding unit testing techniques will help you write robust and maintainable code.

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2024 OpenCourser