Publish only Module in Orchard - orchardcms

I'm working in Orchard project & i want to implement WebApi in my project so that I plan to create one WebApi related separate module which handles all the database related code & returns the result to the other modules as well third party calls.
But for implementing like this, how can i publish my rest of the application at one place & the WebApi related module at another place.

You cannot run Orchard Modules without Orchard. If you want to separate site publishing from module publishing, you can update single modules. To do this you need to package you module and then upload and install it to the site. Either by Admin Dashboard or Orchard Command-line.
On how to package a module and install it with Orchard Command-line check the Orchard Doc's here
You can also upload the module package via Orchards Admin Dashboard. Check this Orchard Doc to accomplish this.
Important! Remember to update your module's version in Module.txt manifest file. Otherwise the update won't work.

Related

Uninstalling a module in Orchard

I am trying to uninstall the Designer Tools, but, when I Uninstall, I get a 404 on /Packaging/PackagingServices/UninstallModule. Is there a way to get that UninstallModule?
In Orchard 1.x, uninstalling a module is as simple as deleting its folder under the modules directory. Before you do that, however, disable it just to check the site still runs without it, and also check in the modules admin page what other modules depend on it. In the case of designer tools you should be fine.
Another solution if you want to keep the convenience of debugging easily on your dev boxes but keep your deployed version secure is to modify your deployment procedure to exclude specific modules.

Angular 2 web application within an already existing Maven project

In order to present a brand new way of developing a web application, our team decided to create an Angular 2 web application that will be integrated within an already existing Maven Project in Eclipse Mars which DOES NOT use NodeJS nor Angular.
We are currently using the frontend-maven-plugin belonging to com.github.eirslet and managed to download and install both node.exe and npm.
Now, here is the deal: our web application has its own package.json file with all the configuration required to run properly, BUT we would like to be able to differentiate between the web applications, as each one of them belongs to a different working directory (i.e. com.webapp.app01, com.webapp.app02, ...).
As the plugin does not let the user use the npm install command on different directories, we were wondering about how we could reach this goal... maybe using a general package.json, but generating all .js and dependency files in each project directories.
Would that be something even possible?
Could you give us some help?
Thank you.
Cheers!
What I would suggest is to have a multi-module maven project, with a common parent, and children, that would give you this kind of architecture:
parent-project
|-child-project1 (java project)
|-child-project2 (webapp1)
|-child-project3 (webapp2)
|....
|-child-projectn (webapp n-1)
This way you can have for each web-app the frontend plugin available. And you can handle the flow of the build from the parent project (for instance if webapp2 needs to be built before webapp1, you can orchestrate it from the parent)
We decided to generate all the libraries locally and upload them to SVN, due to the fact that the already existing structure cannot be changed and the maven plugin is too much limited for our purpose.
Thank you for your replies, though. :-)

Install custom component package in Orchard custom module in Orchard CMS

I have created one module called HellowWorls, i need to install custom nuget packages in this module and need to refer some custom script files.
How to do it?
Any help?
Thanks,

Add module to Orchard

I am working on orchard CMS (version 1.8.1) sites with multiple language, I found this one (https://github.com/qt1/orchard_contrib-RM.Localization) is useful, and I would like to add this to my site, but failed to work (I just copied it into, but picker widget cannot be found in dashboard), may someone know how to do and give me some advice?
Regards,
David
If you want to use this module in you Orchard app, you need to add it the the Orchard.sln and compile the application - then the module will be visible in Modules section of the dashboard.
You can also try using an existing package from the Orchard Gallery
Download a package
Go to Modules, and enable Packaging module
Go to Modules -> Installed and click Install a module from your computer
Browse the package and click Install
Now enable the installed module

swagger for an already created project

I just found swagger-node and I have installed all of the dependencies.
Now I have a REST express api at /var/www/myApi this has already been created but needs documentation.
However no where in the documentation does it state how to use an already existing project with swagger.
I am able to create a new project and run it, but how do I use an existing project?

Resources