Stacked - application that lists stacks, build with Svelte, allowing you to perform all CRUD operations, runs with miragejs mock server.
Static web app with hydrated backend, seo friendly.
Available on github pages: Stacked
git repo: https://github.com/eag1ex/svelte-stacked.git
nvm use 20.19npx playwright install chromium.env.example to .envRename .env.example to .env
## install all deps
npm install
## run local project
npm run dev
## build
npm run build
## preview after build
npm run preview
## check code
npm run lint
## Run tests
npm run test
Rename .env.example to .env
npm run build
@/ instead of $src/lib/mockServer/src/data/stacks.tssrc/lib/apisrc/storesAPI end points with miragejs
We use api service src/lib/api to allow easy adaption to real /api end ponts
# get all stacks
(GET) /api/stacks
# create one stack
(POST) /api/stack
# update one stack
(patch) /api/stack/:id
# delete one stack
(delete) /api/stack/:id
uses .env and .env.test
please rename .env.example to .env
last test results: _DEVELOPER/test.results.md
Running tests with miragejs mock server requires jsdom with headless browser:
/$ npx playwright install chromium
on windows when installed can be found under:
C:\Users\<username>\AppData\Local\ms-playwright\chromium-<version>\
baseUrl and/or paths in your tsconfig.json which interferes with SvelteKit in terminal, i kept baseUrl or intellisense wouldn't work