Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rob-leggett/angular_bootstrap_spring
AngularJS, Restful, Spring, Spring Security, Hibernate,Bootstrap, Gulp in ES6, Maven
https://github.com/rob-leggett/angular_bootstrap_spring
angular-js bootstrap gulp jasmine java spring spring-security starter
Last synced: about 1 month ago
JSON representation
AngularJS, Restful, Spring, Spring Security, Hibernate,Bootstrap, Gulp in ES6, Maven
- Host: GitHub
- URL: https://github.com/rob-leggett/angular_bootstrap_spring
- Owner: Rob-Leggett
- License: mit
- Created: 2016-11-06T21:41:42.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-14T19:22:13.000Z (10 months ago)
- Last Synced: 2024-04-15T07:10:39.130Z (10 months ago)
- Topics: angular-js, bootstrap, gulp, jasmine, java, spring, spring-security, starter
- Language: JavaScript
- Homepage: https://robertleggett.blog/2013/12/20/angular-js-and-bootstrap-with-spring-and-spring-security-and-hibernate/
- Size: 340 KB
- Stars: 126
- Watchers: 7
- Forks: 15
- Open Issues: 47
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
angular_bootstrap_spring
========================
[![Build Status](https://travis-ci.org/Rob-Leggett/angular_bootstrap_spring.svg?branch=master)](https://travis-ci.org/Rob-Leggett/angular_bootstrap_spring)Angular JS with Bootstrap and Spring 4 and Spring Security.
This example is an angular js single page application (SPA) with bootstrap for the widgets and styling.
The application has been broken into two modules API and CLIENT, both are built separately and both are deployed separately.
The API can run on any web server, but it has been tested against Tomcat 8, the server required http DELETE and PUT, so ensure your web server can support those http methods.
The CLIENT currently is run via gulp, for a production release you could extract the .zip artefact and run the static client via Apache.
Ensure that you proxy the API so that you have the same domain otherwise you will experience CORS related issues. (deployed artefacts only)
### Gulp:
Used as the build tool for the client, this has been written using ES6### Spring 4:
Used to create RESTful controller interfaces which in turn gets called through ajax requests.
### Spring Security 4:
Used for a stateless api that allows authentication via basic authentication or token authentication.Upon authentication a token is attached to the header response which can in turn be used for sequential requests to be authenticated against.
When an authentication fails a 401 will always be returned.
### Login Details as per database inject.sql:
**Username =** [email protected]**Password =** password
Testing
====================
Simply run on the parent pom to have node and modules auto install and execute all tests. **(REQUIRED FOR FIRST RUN)**Ensure you have Maven 3.2.0+
**mvn clean install**
To run specific profiles please run mvn clean install and simple pass the profile you wish to execute.
This will execute Java and Jasmine tests that will test both java classes and angular js files.
You can also run jasmine only tests if you wish via the front end:
**http://localhost:4444/test**
Running
====================### Recommendations:
Use IntelliJ 16+ to run the application.
### Run the API via Tomcat 8:
Deploy exploded artefact to Tomcat 8 and ensure the root context is set to API.
### Run the CLIENT via gulp.babel.js:
Where PATH is the directory to your checked out project.
**Gulp File:** PATH\angular_bootstrap_spring\client\gulpfile.babel.js
**Tasks:** run
**Node Interpreter:** PATH\angular_bootstrap_spring\client\node\node.exe
**Gulp package:** PATH\angular_bootstrap_spring\client\node_modules\gulp
### The application is set to run on
**http://localhost:4444**
Donations
====================### How you can help?
Any donations received will be able to assist me provide more blog entries and examples via GitHub, any contributions provided is greatly appreciated.
Thanks for your support.
[![paypal](https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=EV2ZLZBABFJ34&lc=AU&item_name=Research%20%26%20Development¤cy_code=AUD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)