Svelte-Quickstarter

Svelte Quickstarter

Automated SvelteKit project setup with Tailwind CSS, Font Awesome, PocketBase integration, and more. Includes a custom setup script for easy installation and configuration of essential features for modern web development.

๐Ÿš€ SvelteKit Project Setup / aka Quickstarter

A lightning-fast setup for SvelteKit projects with all the essential features you need.

๐Ÿ“– Table of Contents

๐Ÿ›  What does setup.mjs do?

The setup.mjs script is a custom setup tool for SvelteKit projects. It provides two installation options:

  1. ๐Ÿš€ Default Install: Automatically installs and configures all available features.
  2. ๐ŸŽ› Manual Install: Allows you to choose which features to install step-by-step.

Tasks performed by the script:

  • ๐Ÿงน Cleans up existing files and folders (except itself)
  • ๐Ÿ“ฆ Installs SvelteKit and configures it with adapter-node
  • ๐ŸŽจ Sets up Tailwind CSS and Tailwind Typography
  • ๐Ÿ”ฃ Installs Font Awesome icons
  • ๐Ÿ—„๏ธ Configures PocketBase integration
  • ๐Ÿ“ Creates necessary folders and files (e.g., .gitignore, demo page)
  • ๐ŸŒ“ Updates app.html with dark mode support
  • ๐Ÿ“ฑ Creates a layout file with responsive navigation
  • โš ๏ธ Creates a custom error page
  • ๐Ÿ”„ Initializes a git repository (optional)
  • ๐Ÿƒโ€โ™‚๏ธ Starts the development server (optional)

๐Ÿš€ Installed Features

This project includes the following features:

  • โœ… SvelteKit
  • โœ… SvelteKit with adapter-node
  • โœ… Tailwind CSS
  • โœ… Tailwind Typography
  • โœ… Font Awesome Icons
  • โœ… PocketBase
  • โœ… Svelte Inspector
  • โœ… Dark mode support
  • โœ… Responsive navigation
  • โœ… Custom error page

๐Ÿ Getting Started

  1. Clone this repository:

    git clone https://github.com/yourusername/sveltekit-quickstart.git
    cd sveltekit-quickstart
    
  2. Set the PB_URL in your .env file to your PocketBase server URL:

    PB_URL=https://your-pocketbase-url.com
    
  3. Run the setup script:

    node setup.mjs
    
  4. Run the development server:

    npm run dev -- --host --open
    

Your default browser should open automatically and navigate to the local development server (usually http://localhost:5173).

๐Ÿ” Using Svelte Inspector

To activate the Svelte Inspector:

  • On macOS: Press Command + Shift
  • On other systems: Press Ctrl + Shift

The inspector toggle button will always be visible in the bottom-right corner of your app.

๐Ÿ“š Additional Information

For more details on how to use SvelteKit, Tailwind CSS, or any of the other installed features, please refer to their respective documentation:

Happy coding! ๐ŸŽ‰

Top categories

svelte logo

Want a Svelte site built?

Hire a Svelte developer
Loading Svelte Themes