In this page, we will demonstrate a quick and easy steps to migrate a PhoneGap project into Monaca using Monaca Localkit. After finish this guide, you would be able to run, test/debug and build an app from your PhoneGap project using Monaca! Let’s get started!
Before starting the migration process, please make sure to read about the Key Differences in order to have a seamless migration.
Download and install the latest version of Monaca Localkit here.
Open Monaca Localkit and sign in with your Monaca account.
Click on the
+ button. Then, select
Import → From Local Cordova Project
Select your project directory and enter the project name.
Click OK to continue.
Backup your project and click OK to continue.
Click No since PhoneGap project is not a transpile project.
Click OK and it’s done!
Monaca Debugger is an application for testing and debugging your Monaca apps on real devices in real-time. When developing Monaca apps on your local PC, assuming that your local PC is successfully paired with Monaca Debugger, all changes made to your project files will be pushed into your Monaca Debugger as soon as you save those changes.
Let’s get started with Monaca Debugger as follows:
Install Monaca Debugger app on your device from Google Play or AppStore.
Launch Monaca Debugger app and sign in with your Monaca account. Make sure you are using the same account for Monaca Localkit.
Once logged in, Monaca Debugger should be able to detect the local PC. Then, a popup message prompting you to pair the debugger with the local PC will appear inside Monaca Debugger.
If Monaca Debugger could not detect the local PC, please pay attention to the following points:
If your pairing is successful, your local project name will appear under
Local Projects in Monaca Debugger. However, if you fail the pairing, please refer to Fail to Pair Monaca Debugger.
To run a project, simply tap on the project name in Monaca Debugger (as shown in the above picture) or click on Run button in Monaca Localkit.
Your project should now be running in the debugger. Go ahead and try out the various operations of your project! After that, try making some code changes and save them. Then, you should see the changes reflected in the debugger.
After your app migration, let’s start building it. For simplicity, we only show how to create a debug build for Android in this guide.
Before starting to build, you will need to upload your project to Monaca Cloud first by clicking on Upload button.
Now, you can open the Build window by clicking on Remote Build button.
The debug build is selected by default. Click Start Build.
It may take several minutes for the build to complete. Please wait. The following screen will appear after the build is successfully completed. You can then choose various ways to install the build app into your device.
To learn more about Monaca, please refer to the following materials: