I'm using Angular 1.4.6 and I cannot see services directory in app structure. If I added myself it, I cannot see in project source this time.
After add services directory in app structure, build / serve by Grunt but the result did not change.
Whats the problem? How can I fix it?
Thanks.
Related
I know there are many articles on google about this but in some cases they are keeping react(frontend) + springboot(backend) together in a single war, but my requirement is different I want to keep the both wars as separate.
So what I tried till now,
Directly adding the react build folder in jboss->standalone->deployment but it does not work, it works on tomcat but not on jboss
Then I created a new dynamic web maven project and renamed react build folder and added it to maven project webapps directory and created a war, but after deployment its giving 403 error, and I am not getting why.
Here is a snapshot of my folder structure, pom file and error on browser
Please help regarding this have been stuck at it for days now with jboss
Is there any other way to do it, I will be happy to change my approach.
tried this also, did not worked
https://www.megadix.it/blog/create-react-app-servlet/
spring boot comes with default tomcat, you can exclude from the dependency
https://spring.io/blog/2014/03/07/deploying-spring-boot-applications
https://dev.to/jakmar17/deploy-spring-boot-on-wildfly-application-server-2029
I have the same problem and I haven't found a good solution. The best I found is to create a dynamic web project in eclipse. Copy the build files into webContent and use HashRouter instead of BrowserRouter with basename equal to the project name. Finally compile and generate the war. I hope the advice helps you.
I'm having an application built with AngularJS (not Angular 2) and is ready to get deployed. In Angular 2+, we'll be building the project and the output of that build command will be a set of html, js, css files with assets folder. I can keep them in my webroot(htdocs in case of Apache server) and run the application. But how to do the same in AngularJS app?
Please note that I don't want to use npm start which actually runs on a port. I've an Apache server and I wanted to place my code in that folder (say htdocs/myAngularJSApp) and I want to access it using www.mydomain.com/myAngularJSApp.
Please help. Thanks in Advance.
Actually, no need to build. Just host it and it will work.
I have recently wanted to a create mobile apps so I decided to use a Mobile App framework that allows the use of web technology.
I decided to install Ionic and it went pretty well, until I hit the 'Configuration' section of its installation documentation.
https://docs.ionic.io/setup.html#configuration
It says that I have to do something related to 'src/app/app.module.ts' but I can't find that file anywhere, I have installed Angular and Zone using npm install but I still can't find this file.
Can anyone help me out finding out where this file is, or how I even get to it?
Currently, this is my project root folder structure:
I have a folder called node_modules, then I have 3 json files: .io-config.json, ionic.config.jon and package.json.
generator-angular-fullstack documentation for openshift deployment (http://angular-fullstack.github.io/generator-angular-fullstack/Generators/openshift.html) says we should take measures to ensure we are using up to date release of nodejs on openshift. Helpfully, a link is provided to a sample project that does just that. Its accomplished by putting a marker file and some scripts in a ".openshift" directory at the root of the app that gets deployed to Openshift.
All good, but how to accomplish that with the build flow the generator users? I could put the .openshift stuff in my project but that feels wrong and the generator doesnt include that directory in the copy to dist out of the box.
Should I put the .openshift stuff right in the dist directory manually? What is best practice here?
I'm trying to deploy my angular application to IIS in windows server. I'm currently using grunt to build the app and then have a web.config to point to my index.html in the dist folder.
The problem is that is not finding any vendor.css or main.css, nor any vendor.js or scripts.js files. I'm not sure if there are tags I can include to my web.config so that it knows where to look for these files. Also, I copied all folders within the dist and pasted the into the root directory of the application and it seemed to work, but then it could not find components I'm currently using in the app.
This how my website looks with current setup:
ISS Website
If anyone can help me solve this I would greatly appreciate it. Thanks in advance!