forked from pptx704/capacitor-template
53 lines
1.3 KiB
Markdown
53 lines
1.3 KiB
Markdown
# CapacitorTemplate
|
|
|
|
A modern React + Vite + Tailwind CSS starter template optimized for building cross-platform mobile applications using [Capacitor](https://capacitorjs.com/). This template provides the essential tools and configurations needed to build, preview, and deploy apps to iOS and Android platforms developed by Omukk.
|
|
|
|
---
|
|
|
|
## Components
|
|
- Basic Capacitor dependencies
|
|
- Initial codebase to start from
|
|
|
|
## Using this template
|
|
|
|
1. **Create a new repository from this template**:
|
|
- In Omukk Repos, navigate to [this repository](https://git.omukk.dev/pptx704/capacitor-template)
|
|
- Click the "Use this template" button at the top of the page
|
|
- Choose "Create a new repository"
|
|
- Fill in your new repository details and click "Create Repository"
|
|
|
|
2. **Clone your new repository**:
|
|
```bash
|
|
git clone git@git.omukk.dev/<username>/<repo>.git
|
|
cd <repo>
|
|
```
|
|
|
|
## 🧰 Installation
|
|
|
|
Ensure you have [Node.js](https://nodejs.org/) and [npm](https://www.npmjs.com/) installed.
|
|
|
|
```bash
|
|
|
|
# Install dependencies
|
|
npm install
|
|
|
|
# Initialize Capacitor
|
|
npx cap init
|
|
|
|
# Add iOS and Android platforms
|
|
npx cap add ios
|
|
npx cap add android
|
|
|
|
# Build the web assets
|
|
npm run build
|
|
|
|
# Sync with Capacitor
|
|
npx cap sync
|
|
|
|
# Open platforms
|
|
npx cap open ios
|
|
npx cap open android
|
|
```
|
|
|
|
|