在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):Nandtel/spring-boot-angular2-starter开源软件地址(OpenSource Url):https://github.com/Nandtel/spring-boot-angular2-starter开源编程语言(OpenSource Language):TypeScript 60.1%开源软件介绍(OpenSource Introduction):Spring Boot Angular2 Starter ApplicationThe simple starter application on Spring Boot with AngularJS 2. This is my personal base application for Spring Boot + AngularJS 2 projects. I prefer to use gradle as a primary build system and gulp as a build system for front-end. All the interaction with compiling typescript, prefixing css and installing typings are handled by gulp. All the tasks for installing node, npm and gulp were implemented in the gradle for more convient introduction. MotivationMy goal is basic, simple and configurated project for easy start with Spring Boor and AngularJS 2. DemoDemo at Heroku: https://springbootangular2.herokuapp.com InstallationNecessary to install gulp and typings globally, if you don't have them:
At first, install npm package for the project. I suppose, you have installed node globally, then just enter follow:
But if not – use this command for installing node and npm locally in project directory:
At first build will be downloaded typing, compiled typescript to javascript, concatenated lib.js from all javascript sources, prefixed css and replaced html files. More clearly this tasks you can see in gulpfile.js. And run the server:
Now you can see the result at localhost. Development modeFor front-end good practice is using gulp watch: when on change typescript, html or css files in webapp directory starts gulp handling task. For this just run:
Or you can each time start handling by yourself, using default gulp command:
In this way, all changes in webapp directory will be syncronized with static directory of Spring Boot. Then install livereload extension for your browser and start the app with command:
Click to the extension and make sure that LiveReload is running on your page. Now you can work in reactive style with LiveReload for static content and fast reloading for application. Technologies
LicenseThe MIT License (MIT) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论