The main goal of this project is to learn frontend development using SvelteKit by taking challenges from Advent of Svelte. However in order for this learning adventure more structured and organized, following areas should be covered during the learning process:
The project is branched by the challenges. Each challenge is a separate branch and merge together into the main branch in sequence. Because of this, the later challenge branch will have all the challenges' code from the previous challenge branches. So in order to see the code for a specific challenge, a diff between the challenge branch and its previous challenge branch should be performed.
Besides the folder structure explained in Svelte Documentation, this project will be routing the main application and documents separately by using the following folder structure:
hhl-svelte-adventure/
|- src/
| |- routes/
| | |- notes/ # for all the summary notes for each challenge
| | | |- advent-day-1/ # for the summary notes for challenge 1 in advent of svelte
| | |- challenges/ # for all the challenges
| | | |- advent-day-1/ # for the application code for challenge 1 in advent of svelte
This project is created by using create-svelte with following command:
# create a new project in the current directory
npm create svelte@latest
# create a new project in my-app
npm create svelte@latest hhl-svelte-adventure
Once you've created a project and 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 your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.