Welcome to the SvelteKit & Capacitor Mobile App Starter Kit! This kit provides a streamlined setup for building native mobile applications using the power of Svelte for the frontend and Capacitor for the bridge between web technologies and native code.
Follow these steps to get started with the project:
Clone the Repository:
git clone https://github.com/anvimaa/capacitor-sveltekit-app.git
Navigate to the Project Directory:
cd app-to-directory
Install Dependencies:
pnpm install
Add Platforms:
npx cap add android
npx cap add ios
Sync and Build Capacitor:
pnpm build
npx cap sync
src/routes
directory. SvelteKit automatically handles routing based on file structure.src/routes
directory.src/stores
directory.src/components
directory.android
, ios
).resources
directory.Development Mode: Run the app in development mode with live reloading:
pnpm run dev
Building for Production: Build the app for production:
pnpm run build
Running on iOS/Android: Run the app on a specific platform:
npx cap run ios
npx cap run android
Contributions are welcome! If you find any bugs or have suggestions for improvement, please open an issue or submit a pull request.
This project is licensed under the MIT License. Feel free to use and modify it for your own purposes.
Happy coding! If you have any questions, feel free to reach out.