letmejustputthishere / vite-sveltekit-motoko-ii

Starter project for Vite + SvelteKit + TypeScript + Motoko + Internet Identity + PocketIC
4 stars 0 forks source link

Vite + SvelteKit + Motoko + PicJS + Internet Identity + Mops

Get started directly:

[!WARNING] Due to current limitations, this template does not work in a Browser Editor when using gitpod or codespaces. Please use VS Code for desktop instead.

Screenshot 2024-01-29 at 12 44 57

Open in Gitpod

Open in GitHub Codespaces

This template gives you everything you need to build a full-stack Web3 application on the Internet Computer.

For an example of a real-world dapp built using this starter project, check out the source code for the ICRC-7 launchpad.

๐Ÿ“ฆ Create a New Project

Make sure that Node.js >= 20, mops >=1.0.0 and dfx >= 0.23.0 are installed on your system.

Run the following commands in a new, empty project directory:

npx degit letmejustputthishere/vite-sveltekit-motoko vite-sveltekit-motoko # Download this starter project
cd vite-sveltekit-motoko # Navigate to the project directory
dfx start --clean --background # Run dfx in the background
npm install # Install packages and deploy canisters

npm start # Start the development server

When ready, run dfx deploy --network ic to deploy your application to the Internet Computer.

๐Ÿ› ๏ธ Technology Stack

๐Ÿงช Testing

You can run npm run test to run unit tests using mops test and end-to-end tests using pic.js.

๐Ÿ“š Documentation

๐Ÿ’ก Tips and Tricks