Skip to content

Commit b9f613c

Browse files
author
Nicolas Romanetti
committed
few upgrades + docker image in Readme
1 parent 55359f1 commit b9f613c

File tree

7 files changed

+49
-45
lines changed

7 files changed

+49
-45
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ hs_err_pid*
2121
# app
2222
quickstart/src/main/webapp/node_modules
2323
quickstart/src/main/webapp/typings
24+
25+
#docker
26+
docker/*

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ install:
2929
- mvn -Pdb,metadata,gen generate-sources
3030
- cd web
3131
- npm install --save @angular/animations
32-
- npm install --save @angular/material@2.0.0-beta.6
33-
- npm install --save primeng@4.1.0-rc.2
32+
- npm install --save @angular/material@2.0.0-beta.7
33+
- npm install --save primeng@4.1.0-rc.3
3434
- npm install --save font-awesome
3535
- cd ..
3636
script:

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Change log
22

3+
4+
## current -
5+
6+
### Upgrades
7+
8+
* primeng from 4.1.0-rc.2 to 4.1.0-rc.3
9+
* spring-boot from 1.5.2 to 1.5.4
10+
* material from 2.0.0-beta.6 to 2.0.0-beta.7
11+
12+
### Other
13+
14+
* provide a Docker image of the sample generated app (see README.md)
15+
316
## v0.9.0 - 2017-06-18
417

518
### Upgrades

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
[![Build Status](https://travis-ci.org/jaxio/celerio-angular-quickstart.svg?branch=master)](https://travis-ci.org/jaxio/celerio-angular-quickstart)
44

5+
56
This Angular quickstart uses Angular Cli to create the application skeleton and Celerio
67
to **reverse your relational database schema** and **generate** the Angular + Spring Boot code
78
to access your database content. The generated code covers much more areas than a simple Hello World app (search,
89
pagination, validation, auto-complete, etc.)
910

1011
To generate an application from a sample database, follow the instructions from the [quickstart][] folder.
11-
The following [screencast](https://www.youtube.com/watch?v=MBrgeykyTGs) shows you what to expect.
1212

1313
Take a look at the generated code for yourself. Out of this
1414
[sample SQL schema](https://github.com/jaxio/celerio-angular-quickstart/blob/master/quickstart-conf/01-create.sql)
@@ -20,6 +20,16 @@ thanks to these [templates](https://github.com/jaxio/celerio-angular-quickstart/
2020
By default we use a sample H2 database schema. Using your own database schema and database engine
2121
is just a matter of configuration. Check as an example our instructions to [use MySQL][] instead of H2.
2222

23+
## What to expect?
24+
25+
The following [screencast](https://www.youtube.com/watch?v=MBrgeykyTGs) shows you what to expect.
26+
27+
You may also run a docker image of the sample generated web:
28+
29+
docker run -p 8080:8080 nromanetti/celerio-angular-quickstart
30+
31+
Remember, this is just a generated sample, the idea is to generate your own application using a more realistic database schema.
32+
2333
## About the project
2434

2535
Our goal is to provide solid code generation templates for advanced Angular CRUD web applications.
@@ -39,7 +49,7 @@ Here is the folder organization:
3949
The generated Angular CRUD web app uses the following technologies/frameworks:
4050

4151
* [Angular Cli](http://cli.angular.io/) a command line interface for Angular
42-
* [Angular 4.0.0](http://angular.io/) web framework: we try to always use the most recent version
52+
* [Angular 4.2](http://angular.io/) web framework: we try to always use the most recent version
4353
* [TypeScript](https://www.typescriptlang.org/): much easier than JavaScript...
4454
* [PrimeNG](http://primefaces.org/primeng/): Angular components library, we leverage file upload, auto-complete, calendar, tri-state checkbox, server-side pagination, etc.
4555
* [Angular Material](https://material.angular.io/): Material Design components for Angular apps

pack-angular/celerio/pack-angular/src/main/resources/application.yml.p.vm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,10 @@ spring:
4848
chain:
4949
cache: false
5050

51+
---
52+
53+
#
54+
# profile used by Dockerfile... just for convenient demo
55+
#
56+
spring.profiles: demowithdocker
57+
spring.datasource.url: jdbc:h2:/db/angulardb;MVCC=TRUE;FILE_LOCK=NO

quickstart/README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ Make sure you wait until spring boot starts and listen on port 8080
3232

3333
cd celerio-angular-quickstart/quickstart/web
3434
npm install --save @angular/animations
35-
npm install --save @angular/material@2.0.0-beta.6
36-
npm install --save primeng@4.1.0-rc.2
35+
npm install --save @angular/material@2.0.0-beta.7
36+
npm install --save primeng@4.1.0-rc.3
3737
npm install --save font-awesome
3838
ng serve --proxy-config proxy.conf.json
3939

@@ -42,7 +42,7 @@ Then open [http://localhost:4200/](http://localhost:4200/)
4242
* Commands above are explained [here](#generate-it-and-run-it)
4343
* [Delete all generated files](#delete-all-generated-files)
4444
* [How-to use your own database](#how-to-use-your-own-database)
45-
* [How-to package front/back in a single jar and run it](#how-package)
45+
* [How-to package it in a single jar and run it](How-to-package-it-in-a-single-jar-and-run-it)
4646

4747
## Generate it and run it
4848

@@ -93,8 +93,8 @@ The backend listens on port 8080.
9393
The 4 command below install some additional dependencies required by the code generated by Celerio.
9494

9595
npm install --save @angular/animations
96-
npm install --save @angular/material@2.0.0-beta.6
97-
npm install --save primeng@4.1.0-rc.2
96+
npm install --save @angular/material@2.0.0-beta.7
97+
npm install --save primeng@4.1.0-rc.3
9898
npm install --save font-awesome
9999

100100
Starts a node server on port 4200 using angular cli. The node server proxies the calls to /api and /img to the
@@ -159,7 +159,7 @@ Follow the steps 2-3 from the [Generate it and run it](#generate-it-and-run-it)
159159
[pom.xml]: https://github.com/jaxio/celerio-angular-quickstart/blob/master/quickstart/pom.xml
160160
[entity.service.ts.e.vm]: https://github.com/jaxio/celerio-angular-quickstart/blob/master/pack-angular/celerio/pack-angular/web/src/app/entities/entity.service.ts.e.vm
161161

162-
## How-to package front/back in a single jar and run it
162+
## How-to package it in a single jar and run it
163163

164164
Let's go one step further. Wouldn't it be convenient for production to only have a single jar to run ?
165165

@@ -176,14 +176,13 @@ Here are the command lines (hope it is self explanatory):
176176
mvn -Pdb,metadata,gen generate-sources
177177
cd web
178178
npm install --save @angular/animations
179-
npm install --save @angular/material@2.0.0-beta.6
180-
npm install --save primeng@4.1.0-rc.2
179+
npm install --save @angular/material@2.0.0-beta.7
180+
npm install --save primeng@4.1.0-rc.3
181181
npm install --save font-awesome
182182
ng build --prod
183183
cp dist/* ../src/main/resources/static
184184
cd ..
185185
mvn package
186-
java -jar target/celerio-angular-quickstart-1.0.0-SNAPSHOT.jar
186+
java -jar target/celerio-angular-quickstart.jar
187187

188188
Access it at http://localhost:8080/
189-

quickstart/pom.xml

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
5-
65
<groupId>com.jaxio</groupId>
76
<artifactId>celerio-angular-quickstart</artifactId>
87
<packaging>jar</packaging>
98
<version>1.0.0-SNAPSHOT</version>
109
<name>celerio-angular-quickstart</name>
1110
<description>
12-
A Spring boot webbapp with Angular JS project generated by Celerio
11+
A Spring boot webapp using Angular - Generated by Celerio
1312
</description>
14-
1513
<parent>
1614
<groupId>org.springframework.boot</groupId>
1715
<artifactId>spring-boot-starter-parent</artifactId>
18-
<version>1.5.2.RELEASE</version>
16+
<version>1.5.4.RELEASE</version>
1917
</parent>
2018

2119
<properties>
@@ -44,7 +42,7 @@
4442
<jdbc.version>1.4.187</jdbc.version>
4543

4644
<jdbc.driver>org.h2.Driver</jdbc.driver>
47-
<jdbc.url>jdbc:h2:${project.build.directory}/db/angular-lab;MVCC=TRUE;FILE_LOCK=NO</jdbc.url>
45+
<jdbc.url>jdbc:h2:${project.build.directory}/db/angulardb;MVCC=TRUE;FILE_LOCK=NO</jdbc.url>
4846
<jdbc.user>root</jdbc.user>
4947
<jdbc.password>manager</jdbc.password>
5048
<jdbc.schema></jdbc.schema>
@@ -235,32 +233,6 @@
235233
<exclude>application.yml</exclude>
236234
</excludes>
237235
</resource>
238-
239-
<!-- COPY aot compilation results + aot index.html -->
240-
<resource>
241-
<directory>src/main/webapp/aot</directory>
242-
<filtering>false</filtering>
243-
<includes>
244-
<include>index.html</include>
245-
<include>dist/build.js</include>
246-
<include>dist/build.js.map</include>
247-
</includes>
248-
<targetPath>static</targetPath>
249-
</resource>
250-
251-
<!-- COPY other resources required by aot index.html -->
252-
<resource>
253-
<directory>src/main/webapp</directory>
254-
<filtering>false</filtering>
255-
<includes>
256-
<include>node_modules/core-js/client/shim.min.js</include>
257-
<include>node_modules/zone.js/dist/zone.min.js</include>
258-
<include>node_modules/json.date-extensions/json.date-extensions.min.js</include>
259-
<include>node_modules/primeng/resources/**</include>
260-
<include>node_modules/@angular/material/core/theming/**</include>
261-
</includes>
262-
<targetPath>static</targetPath>
263-
</resource>
264236
</resources>
265237

266238
<testResources>

0 commit comments

Comments
 (0)