{{title}}!
25 | 26 |This is a basic Bootstrap theme I used in the seed application.
27 | 28 | 29 | 30 |This is a basic Bootstrap theme I used in the seed application.
27 | 28 | 29 | 30 |{{ data | json }}
35 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Java / Maven / AngularJs seed project
2 |
3 | ## Introduction
4 |
5 | This project aims to be a good starting point for a java / maven / angularjs project.
6 |
7 | > NOTE: Deprecated.
8 | >
9 | > It was a very fine and well used Proof of concept and I learned a lot from it. The blogs and articles resulting from this POC have been read by many people, but as all things go, this project is no longer a good source of information.
10 | > Use it as you see fit, but I do not recommend using it for real projects anymore.
11 |
12 | check it out:
13 |
14 | ```bash
15 | git clone https://github.com/IvoNet/java-angularjs-seed.git
16 | ```
17 |
18 | ## Prerequisites
19 | * Firefox or Chrome
20 | * [npm](https://www.npmjs.org)
21 | * [nodejs](http://nodejs.org)
22 | * [JDK](http://www.oracle.com/technetwork/java/javaee/downloads/index.html)
23 | * [IDE](http://www.jetbrains.com/)
24 | * [bower](http://bower.io)
25 | * [PhantomJs](http://phantomjs.org) or `brew install phantomjs`
26 | * [Application Server](https://glassfish.java.net/download.html) or `brew install glassfish`
27 |
28 | ## Installation
29 |
30 | ```bash
31 | mvn package
32 | ```
33 |
34 | When running this command a couple of things happen:
35 | * Bower install will be run
36 | * JSLint will be run in src/main/javascript sources
37 | * Javascript will be minified
38 | * All the other standard maven phases.
39 |
40 | ## Status of the project
41 |
42 | See the article on [DZone](http://ivo2u.nl/5U)
43 |
44 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "java-angular-seed",
3 | "private": true,
4 | "version": "0.0.0",
5 | "description": "A starter project for AngularJS combined with java and maven",
6 | "repository": "https://github.com/ivonet/java-angular-seed",
7 | "license": "Apache 2.0",
8 | "devDependencies": {
9 | "bower": "^1.3.1",
10 | "http-server": "^0.6.1",
11 | "karma": "~0.12",
12 | "karma-requirejs": "0.2.2",
13 | "karma-script-launcher": "0.1.0",
14 | "karma-chrome-launcher": "^0.1.4",
15 | "karma-firefox-launcher": "^0.1.3",
16 | "karma-phantomjs-launcher": "0.1.4",
17 | "karma-jasmine": "^0.1.5",
18 | "karma-junit-reporter": "^0.2.2",
19 | "shelljs": "^0.2.6"
20 | },
21 | "scripts": {
22 | "postinstall": "bower install",
23 | "prestart": "npm install & mvn clean package",
24 | "start": "http-server target/app -a localhost -p 8000",
25 | "pretest": "npm install",
26 | "test": "karma start src/test/javascript/karma.conf.js",
27 | "test-single-run": "karma start src/test/javascript/karma.conf.js --single-run",
28 | "preupdate-webdriver": "npm install",
29 | "update-webdriver": "webdriver-manager update",
30 | "update-index-async": "node -e \"require('shelljs/global'); sed('-i', /\\/\\/@@NG_LOADER_START@@[\\s\\S]*\\/\\/@@NG_LOADER_END@@/, '//@@NG_LOADER_START@@\\n' + cat('src/main/webapp/vendor/angular-loader/angular-loader.min.js') + '\\n//@@NG_LOADER_END@@', 'src/main/webapp/index.html');\""
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/test/java/nl/ivonet/application/SeedApplicationTest.java:
--------------------------------------------------------------------------------
1 | package nl.ivonet.application;
2 |
3 | import nl.ivonet.controler.HomeControler;
4 | import org.glassfish.jersey.jackson.JacksonFeature;
5 | import org.junit.Before;
6 | import org.junit.Test;
7 |
8 | import javax.ws.rs.ApplicationPath;
9 | import java.util.Set;
10 |
11 | import static org.hamcrest.MatcherAssert.assertThat;
12 | import static org.hamcrest.core.Is.is;
13 | import static org.junit.Assert.assertEquals;
14 | import static org.junit.Assert.assertNotNull;
15 |
16 | public class SeedApplicationTest {
17 |
18 | private SeedApplication seedApplication;
19 |
20 | @Before
21 | public void setUp() throws Exception {
22 | this.seedApplication = new SeedApplication();
23 |
24 | }
25 |
26 | @Test
27 | public void testGetClasses() throws Exception {
28 | final SetThis is a template for a simple marketing or informational website. It includes a large callout called a 66 | jumbotron and three supporting pieces of content. Use it as a starting point to create something more 67 | unique.
68 | 69 | 70 |77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 |
85 |86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 |
94 |95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 |
103 |104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 |
112 | 113 | 114 || # | 123 |First Name | 124 |Last Name | 125 |Username | 126 |
|---|---|---|---|
| 1 | 131 |Mark | 132 |Otto | 133 |@mdo | 134 |
| 2 | 137 |Jacob | 138 |Thornton | 139 |@fat | 140 |
| 3 | 143 |Larry | 144 |the Bird | 145 |
| # | 155 |First Name | 156 |Last Name | 157 |Username | 158 |
|---|---|---|---|
| 1 | 163 |Mark | 164 |Otto | 165 |@mdo | 166 |
| 2 | 169 |Jacob | 170 |Thornton | 171 |@fat | 172 |
| 3 | 175 |Larry | 176 |the Bird | 177 |
| # | 190 |First Name | 191 |Last Name | 192 |Username | 193 |
|---|---|---|---|
| 1 | 198 |Mark | 199 |Otto | 200 |@mdo | 201 |
| Mark | 204 |Otto | 205 |@TwBootstrap | 206 ||
| 2 | 209 |Jacob | 210 |Thornton | 211 |@fat | 212 |
| 3 | 215 |Larry the Bird | 216 |||
| # | 226 |First Name | 227 |Last Name | 228 |Username | 229 |
|---|---|---|---|
| 1 | 234 |Mark | 235 |Otto | 236 |@mdo | 237 |
| 2 | 240 |Jacob | 241 |Thornton | 242 |@fat | 243 |
| 3 | 246 |Larry the Bird | 247 |||
317 | Default 318 | Primary 319 | Success 320 | Info 321 | Warning 322 | Danger 323 |
324 | 325 | 326 |330 | Inbox 42 331 |
332 | 337 | 338 | 339 |Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget 529 | risus varius blandit.
530 | 531 | 532 |Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget 535 | risus varius blandit.
536 | 537 | 538 |Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget 541 | risus varius blandit.
542 | 543 |Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non 618 | magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna, vel scelerisque 619 | nisl consectetur et. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi 620 | erat porttitor ligula, eget lacinia odio sem nec elit. Aenean lacinia bibendum nulla sed consectetur.
621 |