From c6622aff753194510f896e1ec8d784a5ca28c171 Mon Sep 17 00:00:00 2001 From: Nihey Takizawa Date: Mon, 18 Jan 2021 14:53:58 -0300 Subject: [PATCH] Add instructions on how to build and run ios and android apps --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 2c4a413..6ff9a27 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,29 @@ This repo is a starting point for building an iOS, Android, and Progressive Web Next.js handles the production React app experience, Tailwind can be used to style each page of your app, Ionic Framework provides the cross-platform system controls (navigation/transitions/tabs/etc.), and then Capacitor bundles all of it up and runs it on iOS, Android, and Web with full native access. +## Usage + +Build your client side Next.js files + +```bash +npm run build +npm run export +``` + +All the client side files will be sent to `./out/` directory, you can now run capacitor on iOS or Android: + +```bash +# iOS +npx cap copy ios +npx cap open ios +``` + +```bash +# Android +npx cap copy android +npx cap open android +``` + ## What is Capacitor? You can think of [Capacitor](https://capacitorjs.com/) as a sort of "electron for mobile" that runs standard web apps on iOS, Android, Desktop, and Web.