svelte_animated-spork Svelte Themes

Svelte_animated Spork

Demo of svelte running on docker container with production-ready PM2

Svelte kit app

This is a Svelte kit app. It is configured for local and docker development via Makefile and .env. Tested for Windows 11.

Requirements

  • Docker
  • docker-compose (that should be included in the docker installation)
  • Make
  • NodeJS version 19.0.0 or higher
  • NPM version 7.0.0 or higher
  • (optional) NVM for managing NodeJS versions

Setup

  1. Clone the repository

Local development

  • 2A. Install the dependencies with make prepare
  • 3A. Start the development server with make dev

Docker development

  • 2B. Install the dependencies with make prepare
  • 3B. Start the development server with make build and make up
    • Make sure to specify DOCKER_PRODUCTION to false in the .env file if you want to use the development server on docker. Or you can set DOCKER_PRODUCTION to true to run the production server on docker.

You can preview the production build with npm run preview inside the /app folder.

To deploy your app, you may need to install an adapter for your target environment.

Top categories

Loading Svelte Themes