Code Monkey home page Code Monkey logo

spring-boot-angular-deployment's Introduction

spring-boot-angular5

The sample maven configuration to build spring boot and angular 5 project together as a war file. The actual implementation was posted on spring boot angular Deployment This is a sample project using Angular 5 and spring Boot.Spring boot has been used to expose REST Endpoints and the client is written in angular. This is a complete web application with a connectivity to mysql database. We have used spring data to connect to the database and perform CRUD operation.

The application has CRUD operation example for user entity. Here, you can create a user, read users record and also delete user. The complete explanation can be found on my blog - spring boot angular 5 example

This project uses following versions:

  1. Spring Boot v1.5.9
  2. Angular v5.0.0
  3. Maven

spring-boot-angular-deployment's People

Contributors

only2dhir avatar

Stargazers

 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

spring-boot-angular-deployment's Issues

The build command requires to be run in an Angular project, but a project definition could not be found.

Not working for me after cloning:

$ git clone https://github.com/only2dhir/spring-boot-angular-deployment.git
$ cd spring-boot-angular-deployment/
$ mvn package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] portal-app
[INFO] user-portal
[INFO] portal parent
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building portal-app 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) @ portal-app ---
[INFO] Node v8.9.0 is already installed.
[INFO] NPM 5.5.1 is already installed.
[INFO] 
[INFO] --- frontend-maven-plugin:1.6:npm (npm run build) @ portal-app ---
[INFO] Running 'npm run build' in /home/stefan/tmp/spring-boot-angular-deployment/portal-app
[INFO] 
[INFO] > [email protected] build /home/stefan/tmp/spring-boot-angular-deployment/portal-app
[INFO] > ng build
[INFO] 
[ERROR] The build command requires to be run in an Angular project, but a project definition could not be found.
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! errno 1
[ERROR] npm ERR! [email protected] build: `ng build`
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR! 
[ERROR] npm ERR! Failed at the [email protected] build script.
[ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[WARNING] npm WARN Local package.json exists, but node_modules missing, did you mean to install?
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] portal-app ......................................... FAILURE [  0.841 s]
[INFO] user-portal ........................................ SKIPPED
[INFO] portal parent ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.077 s
[INFO] Finished at: 2019-01-17T18:16:19+01:00
[INFO] Final Memory: 26M/966M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (npm run build) on project portal-app: Failed to run task: 'npm run build' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Cant run the application after downloading

hi,
I cant able to run the application after downloading the zip,I navigated to the portal-app directory and ran "npm install" after this, I ran "ng serve" and I got the following error.
image

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.