Giter VIP home page Giter VIP logo

swathisprasad / spring-boot-angular6-maven-project Goto Github PK

View Code? Open in Web Editor NEW
71.0 8.0 131.0 128 KB

Build and package spring boot and angular6 into a deployable war file

Home Page: https://techshard.com/2018/08/12/building-a-web-app-using-spring-boot-angular-6-and-maven/

License: MIT License

Java 9.34% JavaScript 15.32% TypeScript 61.84% HTML 12.79% CSS 0.71%
springboot angular angular6 typescript

spring-boot-angular6-maven-project's Introduction

spring-boot-angular6-maven-project's People

Contributors

swathisprasad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spring-boot-angular6-maven-project's Issues

How to deploy to external tomcat as .war file?

I have setup this repository. I can run the application but how to deploy the project to an external tomcat server as .war file?

I tried following command to package but the js libraries are not accessible (404)

/mvn clean install
tutorial-server/mvn clean dependency:copy-dependencies package

if I run only tutorial-server/mvn spring-boot:run then the application is running perfectly.

Is there any other best way to deploy the application in production server?

Regards,
HPardess

Why does the app have a login page?

I'm new to Angular (not new to Java), when I run the app either as a standalone Spring Boot app or when I deploy the war to my Tomcat the app presents with a user login page. Where is this coming from? I don't see that in your front end code. What is the login?
In your example/tutorial I'd like to see explanation of how the front-end works so I can know how to modify it to present what I need in my web app.

Live reload

Is there a way to make live reload work with this? I know that spring-dev-tools support it but I'm a bit confused on how or if it can be set up with maven copying the built angular stuff into the target folder

I see login page

Hi, i have cloned, run mvn clean install, next run and for some reason i see login page, it´s ok?
i have tested on linux and windows.

Unable to copy resources from client to server

Hi,

For some reason my index.html and other files do not get copied into classes/resources folder on server side. There is no resources folder created. Any help is appreciated.

My server pom.xml:

${project.build.directory}/classes/resources/ ${project.parent.basedir}/src/main/web/dist/test-app

Running master

I download the master today(07/31) and just run the "mvn clean install".

My machine info:
Debian 10
npm 5.8.0
node v10.15.2

I also tried to change the setting in master pom:
frontend-maven-plugin 1.7.6 (latest)
nodeVersion v10.15.2 (my machine)
npm 5.8.0 (my machine)

I always get the same error:
[ERROR] npm ERR! code EINTEGRITY
[ERROR] npm ERR! sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE= integrity checksum failed when using sha1: wanted sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE= but got sha512-LzHF64s5chPQQS0IYBn9IN5h3i98c12bo4NCO7e0sGM2llXQ3p2FGC5sdENN4cTW48O915Sh+x+EXx7XW96xYQ== sha1-sZ7sP94qluZGZt+f20DFyhvDdH0=. (33170 bytes)

I also tried commands, followed by mvn clean install, like:
npm cache clean --force
npm cache verify

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.