winget install -e --id OpenJS.NodeJS
npm install npm -g
npm create svelte@latest buy-home
cd buy-home
npm install
git init && git add -A && git commit -m "chore: initial commit"
npm install svelte @sveltestrap/sveltestrap
npm install bootstrap-icons
npm run dev -- --open
npm install -D @sveltejs/adapter-static
# Modify svelte.config.js (see reference below)
# Add the following to src/routes/+layout.js:
export const prerender = true;
npm run build
Deploy as static page to Kinsta:
- Push the code to GitLab.
- Create an account at Kinsta.
- Authorize Kinsta with your Git provider.
- Click Static Sites on the left sidebar, then click Add site.
- Select the repository and the branch you wish to deploy from.
- Assign a unique name to your site.
- Add the build settings in the following format:
- Build command:
npm run build
- Publish directory:
build
- Build command:
- Finally, click Create site.
The code will be deployed.
- Round up is needed on boundaries
The input controls' max value must be larger than the intended value, otherwise there's a risk that the real value cannot be set due to the step size.
Example:
max
is set to 1025 andstep
is set to 50. The value 1025 can not be set because of the step from 1000 + 50 is greater than 1025.
- Share calculation Encode all parameters to a base64-string that can be shared with others.
- Set as reference Lock a value (maybe only the price?) and manipulate the other parameters so it is easier to compare and do "what if this changes"-scenarios.
- Explain formulas Show the mathematical formulas and the actual values used when explaining the fields.