This app is made of 3 sub-apps:
UserList.svelte
and an API /api/users.json
Chat.svelte
and an API /api/messages.json
; it depends on users' library/
and uses the two other modulesvite: {
plugins: [loadModules('@gauben/users', '@gauben/messages')],
},
You'll need to clone gauben/kit:
git clone https://github.com/GauBen/kit
cd kit
pnpm install
pnpm build
cd ..
You'll also need to clone this very repo:
git clone https://github.com/GauBen/modularized-sveltekit-app
cd modularized-sveltekit-app
pnpm install
# Link gauben/kit
cd app && pnpm link ../kit/packages/adapter-node && cd ..
cd messages && pnpm link ../kit/packages/adapter-node && cd ..
cd users && pnpm link ../kit/packages/adapter-node && cd ..
pnpm dev
# ✨
Even server-side rendering works!