Svelte + Typescript + TailwindCSS + Snowpack Docker image for building great apps
310
✨ Bootstrapped with Create Snowpack App (CSA).
Svelte is ultimately the best framework for building great web apps. "Birds of the same feathers flock together"
$ git clone https://github.com/Parables/sttsp-template <your_project_name>
$ cd <your_project_name>
$ docker pull parables95/sttsp-template
Or build the image locally using the Dockerfile
$ docker build -t <image-name> .
docker run -it --name <container_name> -p 8080:8080 -v ${PWD}/src:/sveltedev/src -v ${PWD}/public:/sveltedev/public --init <name-of-image> sh
docker run -ti --name <container_name> -p 5000:5000 -p 35729:35729 -p 3572:3572 -v $(pwd)/src:/sveltedev/src -v $(pwd)/public:/sveltedev/public --init <name-of-image> sh
Installing dependencies and start the dev server
pnpm install
pnpm run start
Open http://localhost:8080 to view it in the browser. The page will reload if you make edits. You will also see any lint errors in the console.
To stop your session: press CTRL+C twice and ENTER in your terminal window. Then type exit.
Once out of the container, type
docker stop <container_name>
To resume your session, just type:
docker start <container_name>
docker exec -it <container_name> sh
once inside the container, run
pnpm run start
To run tests, once inside the container, run
pnpm test
To build your app for production
pnpm run build
Builds a static copy of your site to the build/ folder.
Your app is ready to be deployed!
For the best production performance: Add a build bundler plugin like @snowpack/plugin-webpack or snowpack-plugin-rollup-bundle to your snowpack.config.json config file.
No eject needed! Snowpack guarantees zero lock-in, and CSA strives for the same.
Content type
Image
Digest
Size
43.9 MB
Last updated
over 5 years ago
docker pull parables95/sttsp-template