Skip to content

Latest commit

 

History

History
70 lines (48 loc) · 3.48 KB

File metadata and controls

70 lines (48 loc) · 3.48 KB

JAQ Stack - core

This module includes all the primary sources required to build and development of web appications using JAQ Stack.

Build and Deployment

System requirements

Folder Strcuture

jaq-stack-folder-structureImage: Folder structure

How to Build

  • Create a new directory and cd to it

    • $ mkdir projects
    • cd projects
  • Clone git repository

    • git clone https://github.com/ksurendra/jaqstack.git [Note: 'ksurendra' will change for you. Copy from github]
  • Jaq-stack directory will be created with sources in it

    • cd jaq-stack
  • Build the project

    • mvn clean package
  • If the build goes well, you will see the output as below jaq-stack-sample-build-screen1Image: Sample build screen 1

    jaq-stack-sample-build-screen2Image: Sample build screen 2

  • The above will generate a war file named `` under /jaq-stack/target/jaq-stack-webapp.war

  • Deploy this war to any web application server like Tomcat, Jetty, etc

How to Deploy/Run

Using Tomcat as an example:

  • Open tomcat's admin console like http://sampleserver.com:8080/manager/html
  • Choose Select WAR file to upload , uplaod the jaq-stack-webapp.war jaq-stack-sample-tomcat-adminImage: Sample Tomcat admin console screen
  • If the deployment is successful, you can see /jaq-stack-webapp in the deployed applications.
  • Open a new browser and use this url http://samplesever.com:8080/jaq-stack-webapp/ . You should see Java Hello World! jaq-stack-sample-screen-browserImage: Sample jaq-stack-webapp page on browser

Test

  • Main application http://sampleserver:8080/jaq-stack-webapp jaq-stack-sample-screen-browserImage: Sample jaq-stack-webapp page on browser

  • Initializr Theme http://sampleserver:8080/jaq-stack-webapp/initializr/ jaq-stack-sample-screen-webpage-initializr-angularImage: Sample jaq-stack-webapp page on browser

  • Sample servlet http://sampleserver.com:8080/jaq-stack-webapp/simple jaq-stack-sample-screen-servletImage: Sample jaq-stack-webapp page on browser

Troubleshooting

  • If mvn package command fails showing that ng fails,then run try this
    • sudo npm install -g @angular/cli
    • If installation of the above goes into infinite loop, then
      • mkdir ~/.npm-global
      • npm config set prefix ~/.npm-global
      • export PATH=~/.npm-global/bin:$PATH
      • Back on the command line, update your system variables: source ~/.profile