This is a starter template for building mobile applications with React, Vite, and Capacitor. It includes a basic project setup and some sample components to help you get started.
To use this starter template, you'll need to have Node.js on machine.
Clone this repository:
git clone https://github.com/lucascassiano/capacitor-react-template.git
# optional
rm -r .git
Install the dependencies:
yarn install
Run the development server:
yarn dev
To build the app for production:
yarn build
npx cap sync
To run the app on a device, use the Capacitor CLI:
yarn run:ios // 🍎 For iOS
yarn run:android // 🤖 For Android
To open the respective directory in Xcode or Android Studio:s
yarn open:ios // 🍎 For iOS
yarn open:android // 🤖 For Android
├── public
├── android
├── ios
├── src
│ ├── components
| ├── assets
│ ├── App.css
| ├── App.tsx
│ ├── main.tsx
| ├── index.css
| ├── vite-env.d.ts
├── .gitignore
├── index.html
├── package.json
├── README.md
├── vite.config.js
├── tsconfig.json
├── tsconfig.node.json
└── capacitor.config.json
If you'd like to contribute to this starter template, feel free to submit a pull request.