SmartSvelte is a web template app build upon:
Once you've created installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of SmartSvelte:
npm run build
You can preview the production build with npm run preview
.
To run unit tests:
npm run test:unit
Before running UI tests with 'npm run test', you must install 'playwright' with
npx playwright install
then run
npm run test:integration
First of all install dotenv
npm install dotenv
Then build with
node -r dotenv/config build
We are using 'Node.js Adapter' to deploy SmartSvelte app as a Node.js application.
docker build -t smartsvelte-docker .
docker run -p 8080:8080 smartsvelte-docker
You may navigate the site with
http://0.0.0.0:8080/