|
Re: intellij - how to create or import project [message #1830871 is a reply to message #1830641] |
Wed, 05 August 2020 15:19 |
|
Hi
The easiest way at the moment is to use Eclipse to create the project and import it into IntelliJ. You could also create it using the Maven archetype on command line or using the archetype wizard in IntelliJ, but this requires a few more steps.
Let me show you the way using Eclipse first.
1. Create a project in Eclipse (with default settings).
2. Close Eclipse, Open IntelliJ
3. Select File, Open.
4. Select the root folder of the generated project (helloworld).
5. Ensure all modules are correctly added as maven projects. The name of the text needs to be bold, if the color is lighter (which probably is the case for helloworld.server.app.dev and helloworld.ui.html.app.dev), execute right click, Add as Maven Project
6. Run npm install on the package.json in helloworld.ui.html. You can do this on command line or right click, npm install.
7. Start the watcher to build the JavaScript sources. You can do this on command line or open the package.json and click on the play icon on line 21.
8. Convert the eclipse launch files into IntelliJ Run Configurations. You can do this easily with the IntelliJ plugin called Eclipser. Just install it using File, Settings, Plugins first. And then right click on the launch files and run "Convert with Eclipser". Do this for [webapp] dev ui.launch and [webapp] dev server.launch
9. Run server and client using the generated run configurations on the top right corner of IntelliJ
10. Open http://localhost:8082/ in the browser :)
|
|
|
|
Re: intellij - how to create or import project [message #1830875 is a reply to message #1830872] |
Wed, 05 August 2020 15:58 |
|
The third way is to create a new maven project using archetype with IntelliJ, but I don't recommend to do it at the moment because you can not specify the simpleArtifactName which is used to name some JS and Less files and for the JavaScript namespace.
But if you want to try it, follow these steps:
1. Select File, new project.
2. Choose Maven
3. Click create from archetype and then "Add Archetype"
4. Fill the fields in the following way:
5. Click next and insert the properties for your project. Make sure to use a version with 3 digits or change the version in the package.json afterwards. 1.0-SNAPSHOT is not a valid version for npm, you need 3 digits. You could use 1.0-SNAPSHOT for the maven projects (pom.xml) and 1.0.0-snapshot for the npm project (package.json).
6. Change the names of the JS and Less files and rename the namespace (name.js, name-theme.less etc.)
7. Have fun :-)
BTW: Install the Eclipse Scout plugin to get some Scout SDK support (NLS editor, code completion for Scout fields etc.).
|
|
|
|
Re: intellij - how to create or import project [message #1839215 is a reply to message #1839174] |
Wed, 17 March 2021 15:53 |
|
Hi Luka,
you can add certain Scout elements like form fields or menus directly in the editor by typing or pressing ctrl + space. FormData and PageData objects are created automatically.
The creation of forms or pages is not supported yet, but it is in development. I expect it to be released within the next few months.
BTW: the creation of a new Scout project in IntelliJ got a lot easier with the latest Scout release. Have a look at the Release Notes.
|
|
|
Powered by
FUDForum. Page generated in 0.04035 seconds