🧩 Sapper blog example

Example markdown-style blog using Sapper.

Getting started

Clone the repo

npx degit joshnuss/blog-template my-blog

Running the project

Install dependencies and run the project in development mode with:

cd my-blog
npm install # or yarn
npm run dev

Open up localhost:3000 and start clicking around.

Consult sapper.svelte.dev for help getting started.

Structure

Posts are stored in the posts folder and pages are in the src/routes folder

Production mode and deployment

To start a production version of your app, run npm run build && npm start. This will disable live reloading, and activate the appropriate bundler plugins.

You can deploy your application to any environment that supports Node 10 or above. As an example, to deploy to Vercel Now when using sapper export, run these commands:

npm install -g vercel
vercel

Source

Top categories

svelte logo

Want a Svelte site built?

Hire a Svelte developer
Loading Svelte Themes