Note
All these requirements were checked by the script that generated this project. If you are having issues, let un know.
- Recent Node version. Recommended the latest LTS version
- Recent npm version. Recommended the version installed with LTS node
- pnpm (required to install the dependencies in this project)
- (Recommended)
ni
/nr
from @antfu/ni to easily add packages and run commands - If you are using VSCode, make sure to disable Vetur and install all recommended extensions with
Shift + cmd + P
+show recommended extensions
.
You can update the platform (fetch new exercises and code updates) any time by running the same command you used to setup the exercises platform:
npx zx@7.2 https://esm.is/mastering-pinia
Or if you specified a folder name:
npx zx@7.2 https://esm.is/mastering-pinia my-folder
After updating remember to install the dependencies again with pnpm i
.
Install the dependencies of the project using pnpm
:
pnpm i
Start the project with nr dev
or pnpm run dev
and visit http://localhost:5173. Note 3 servers will be running in
parallel and require ports 5173, 7777, and 5555. Make sure to not have any application running on those ports
If you want, you can also run the 3 commands separetly:
pnpm run dev:test-server
: runs the testspnpm run dev:vite
: runs the exercise platformpnpm run dev:api
: runs a fake API server
- All exercises can be found within the
src/exercises
folders. You won't need to change files outside of that folder - Most exercises run some automated tests to help you with the exercises, keep an eye on the console as some tests give you customized tips 😉
If you have failing tests, you can visit http://localhost:51205/__vitest__/ to get more information about the failing tests.