Dry development man knows, the system online, if there is a bug, leadership will call me the first time, also get up in the middle of the night to change bug, change bug anytime and anywhere is the everyday programmer, this leads to many programs must carry the computer after work crowded subway, over time, drag the body carrying a heavy bag again, that call a miserable, Is there a good way to solve this problem?

Today, to give you a welfare, take you to install an IntelliJ IDEA on the iPad a SpringBoot, from now on farewell backpack. Here’s what IDEA looks like when you open it on your phone and iPad.

preface

You need to install Git and Docker environment on Windows or Linux. We will take Linux as an example for installation. If you plan to use it for a long time on iPad, it will be more stable and have better performance. (Note: it is impossible to turn without these two environments)

The installation

1. Git to download JetBrains projector-docker

git clone https://github.com/JetBrains/projector-docker.git
Copy the code

2. Edit the run – the container – mounted. Sh

Switch to the projector- Docker directory, which is JetBrains’ Docker project, and the corresponding directory script is as follows

1. Configure the local disk to the docker,/root/projector-docker as the local directory. Please configure it according to your requirements.

docker run --rm -p 8887:8887 -v /root/projector-docker:/home/projector-user -it "$containerName" bash -c "./run.sh"
Copy the code

3. Download the projector-core source code

Still execute in project-docker directory

./clone-projector-core.sh
Copy the code

100% indicates that the source code is downloaded

4. Compile the Docker container

Still execute in project-docker directory

./build-container.sh
Copy the code

Above is the compilation process, this is a bit of a pit, because I did not configure the domestic mirror, resulting in the first time is relatively slow, nearly 2 hours [sleep at night to download by yourself, recommended to configure the domestic mirror]

5. Run the container

./run-container-mounted.sh
Copy the code

Start-up success

6. Set the IntelliJ IDEA version

The default version of IntelliJ IDEA is currently 2019.3, and those interested can upgrade the version themselves.

Run the build-container.sh command and change the downloadUrl attribute to ideaic-2019.3.5.tar. gz, for example, ideaic-2020.3.1.tar. gz

The downloadUrl = ${2:-https://download.jetbrains.com/idea/ideaIC-2019.3.5.tar.gz}Copy the code

Open it in a browser on iPiad Air

On iPad Air, open Safari and go to 101.200.56.xxx:8887/.

The above is the initial boot effect picture. Since I created a SpringBoot project in advance, there is no project when I open it normally. The effect is the same as that of local installation on the computer.

Simple operation of IntelliJ IDEA on iPad Air

1. Create a Maven project

2. Install the IDEA plug-in

3. Start the project

###4. Theme skin replacement

conclusion

In addition to the functions listed above, it is basically the same as the PC installation version, with all the basic functions. In addition, it not only supports Intellij IDEA, but also supports WebStorm, Goland, PhpStorm, PyCharm, Goland and other family members, go and try it!

This article starts with the public account Java version of the Web project, pay attention to continue to send good articles