Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sean-bradley/seans-angularjs-java-spring-hibernate-mysql-boilerplate
A Dockerised AngularJS Java Spring Hibernate Mysql Boilerplate
https://github.com/sean-bradley/seans-angularjs-java-spring-hibernate-mysql-boilerplate
angularjs boilerplate chai docker gulp hibernate java mocha mysql nginx protractor spring
Last synced: 22 days ago
JSON representation
A Dockerised AngularJS Java Spring Hibernate Mysql Boilerplate
- Host: GitHub
- URL: https://github.com/sean-bradley/seans-angularjs-java-spring-hibernate-mysql-boilerplate
- Owner: Sean-Bradley
- License: mit
- Created: 2018-07-23T15:47:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-27T12:13:30.000Z (about 5 years ago)
- Last Synced: 2024-11-13T13:54:56.906Z (3 months ago)
- Topics: angularjs, boilerplate, chai, docker, gulp, hibernate, java, mocha, mysql, nginx, protractor, spring
- Language: HTML
- Homepage:
- Size: 1.43 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Seans-AngularJS-Java-Spring-Hibernate-MySQL-Boilerplate
*Dockerised and with tests*
Tests
- Mocha and Chai test scripts for testing the routes
- Protractor e2e and Jasmine tests for the AngularJS UIAnd
- Auto concat using Gulp Concat
- Minify using Gulp Uglify
- ES6 to ES5 conversion using Babel
- and deploy to public www folder using Gulp
- now dockerised with docker-compose## Install
`git clone https://github.com/Sean-Bradley/Seans-AngularJS-Java-Spring-Hibernate-MySQL-Boilerplate.git`
`cd Seans-AngularJS-Java-Spring-Hibernate-MySQL-Boilerplate`
`cd angularjs`
`npm install`
## To start
`cd ..` *cd back to project root*
`docker-compose up`
then visit
`https://localhost:8443`
## Note about docker toolbox on windows 10
If you use docker toolbox on windows 10 home, the site will be published at ip 192.168.99.100.
* You should open the VBox manager,
* Click the default machine used by docker
* Right click and choose Settings
* Network > Adapter 1 > Advanced > Port Forwarding
* Click "+" to add a new Rule
* Set Host IP to 127.0.0.1, Host Port 8443
* Guest IP to 192.168.99.100 and Guest Port 8443![screen shot](screenshot.png)
## Developing
If you are developing the code,
you will also need to open a second console and run`cd angularjs`
`gulp watch`
This will automatically,
- detect changes in the source files,
- run tests on the files using mocha and chai,
- compile them from ES6 to ES5 Javascript using babel,
- concatenate the js using gulp-concat,
- and minify the js using gulp-uglify,
- and copy the new scripts and html to the public `www` folderAll the AngularJS specific files should be edited from the `ngSrc` folder.
Any changes will be automatically tested, recompiled, minified and saved to the public `www` folder.## Mocha Chai tests
`cd angularjs`
`npm test`
## e2e Testing
There is also the option to do e2e testing with protractor and jasmine.
Before you start, you need to install protractor
`cd angularjs`
`npm install -g protractor`
then, update the web driver
`npm run update-webdriver`
Now you can run
`npm run protractor`