- Make sure you have Node v16.14+ installed with
node --version
. - Clone the repository to your work environment:
git clone git@github.com:miles-no/gather-your-party-with-svelte.git
orgit clone https://github.com/miles-no/gather-your-party-with-svelte.git
. - Install dependencies with
npm install
. - To start the development server and open the application:
npm run dev -- --open
(ornpm run dev
to run without opening a new window).
All tasks are listed in the file workshop-tasks.md
located at the root of the project.
Both this readme file and the workshop-tasks
(as Quests) file can be viewed in the local app.
When working with quests there will always be an accompanying solutions file.
If the task is located in my-quest.svelte
the solution file will be called my-quest.SOLUTION.svelte
(or
SOLUTION.+page.svelte
for a route, and my-quest.SOLUTION
for a route folder).
Use this knowledge at your own discretion, but we recommend not looking at these unless you are out of other options.
- To clear local data (characters that have been saved), run
npm run clear-data
. - If you're unfamiliar with TypeScript and do not wish to use it in your Svelte component files, you can remove
the
lang="ts"
attribute at the top of the<script>
tag in components, and strip out any TypeScript types in the file. - While it's not necessary, if you like using a code style formatter,
prettier
is set up in this project. You can run it in two different ways:- If you have it set up in your Editor you can run it via the editor on the file you're working on.
- Run
npm run format
in the terminal to format all your sourcefiles.
To build the application run: npm run build
.
- Go to https://codesandbox.io.
- Login with your user.
- Click
Create
. - Select
Import from GitHub
. - Paste in
https://github.com/miles-no/gather-your-party-with-svelte.git
. - Click
Import and Fork
.