https://github.com/getshifter/example-ionic-react-capacitor
https://github.com/getshifter/example-ionic-react-capacitor
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/getshifter/example-ionic-react-capacitor
- Owner: getshifter
- Created: 2020-07-10T04:26:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-04T18:04:33.000Z (over 1 year ago)
- Last Synced: 2024-12-04T19:19:54.541Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://ionic-react-capacitor-example.netlify.app/
- Size: 1.82 MB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ionic React with Capacitor example
## Just try the demo site
You can deploy the demo site to the following services.
[](https://console.aws.amazon.com/amplify/home#/deploy?repo=https://github.com/getshifter/example-ionic-react-capacitor)
[](https://app.netlify.com/start/deploy?repository=https://github.com/getshifter/example-ionic-react-capacitor)
## Getting started
```bash
$ git clone git@github.com:getshifter/example-ionic-react-capacitor.git
$ cd example-ionic-react-capacitor
$ npm install
$ npm start
```
## Production build
```bash
$ npm run build
```
## iOS
We can run it as a ios application using XCode.
```bash
$ npx cap add ios
$ yarn run build
$ npx cap sync
$ npx cap open ios
```
## Desktop application
We can run it as a Desktop application
```bash
$ npx cap add electron
$ yarn run build
$ npx cap sync
$ npx cap open electron
```
### Build for Desktop
```bash
$ yarn run build && npx cap copy
$ cd electron
$ npx electron-packager . sample --platform=darwin --arch=x64
$ open ./sample-darwin-x64
```