This is a demo Spring Boot Project with Maven for learn how to develop api's and frontend. It includes step by step structure from api's to frontend in all commits. To run this project you needs to install Java, MongoDb and NodeJS.
This repo is for demo for front end and api's in backend using springs, MySQL, Angular.js. Version 1.0
- Create a new Spring starter project in STS.
- Choose Web, MySQL and Thymleaf.
- Select default java version and stable spring boot version.
- Finish, demo api's base ready and follow the structure in this demo api commit 'Initial Commit'
- From command line goto the project folder and run the following commands:
mvn clean install mvn spring-boot:run
- If no error in running the project then api's are ready to test from local host.
- Follow the above api's steps for backend.
- Goto the project directory and make directory (like mkdir frontend).
- Goto frontend folder and run the below commands:
npm init npm install --save-dev gulp cat package.json npm install gulp-connect --save-dev; npm install --save angular
- Run Command: Below command runs dev profile with debugging
port 5090
mvn spring-boot:run -Drun.arguments="--spring.profiles.active=dev" -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5090"
- Goto Debug Configurations, then right click on Remote Java Application and create a new file test_debug.
- Open test_debug set host as local host and port as
5090
- Place Break points on which you want to debug.
- Download tools for linux
- Blog: http://goyalzz.blogspot.in/
- Fb Id: https://www.facebook.com/goyalzz
- LinkedIn: https://in.linkedin.com/in/goyalzz
- Docker: https://hub.docker.com/r/goyalzz/