template-svelte-routify

Template Svelte Routify

Starter template for building application with Svelte, Routify and Tailwind CSS

Svelte šŸ”„ + Routify šŸŽÆ + Vite āš”ļø

Starter template should help get you started developing with Svelte in Vite with Tailwind CSS and Routify applied.

VS Code + Svelte.

Installation

npx degit yumoodev/template-svelte-routify project-name
cd project-name
npm install && npm run dev

Folder Structure

/
ā”œā”€ā”€ .routify/
ā”œā”€ā”€ dist/
ā”œā”€ā”€ public/
ā””ā”€ā”€ src/
    ā”œā”€ā”€ assets/
    ā”œā”€ā”€ lib/
    ā””ā”€ā”€ pages/

šŸ‘‰ dist is the build output (yout're not going to see it until you run npm run build)
šŸ‘‰ public is where you keep your public files such as images and your favicon
šŸ‘‰ src is where you keep your source files
šŸ‘‰ assets and lib are for your assets and components
šŸ‘‰ pages is where your define the routes

Environment

  • Routify - v2.18.5
  • Svelte - 3.48.0
  • Tailwind CSS - 3.0.24
  • Vite - v2.9.9
  • Vite Plugin Svelte - 1.0.0-next.44

Deploying to the web

With Vercel

Install vercel if you haven't already:

npm install -g vercel

Then, from within your project folder:

cd dist
vercel deploy --name my-project

With surge

Install surge if you haven't already:

npm install -g surge

Then, from within your project folder:

npm run build
surge dist my-project.surge.sh

Top categories

Loading Svelte Themes