Skip to content

A tool written in Java and AngularJs able to generate a complete Web application from an existing dababase model

License

Notifications You must be signed in to change notification settings

AVE-cesar/AngularDemoBackend

Repository files navigation

Generate an Angular JS Web App

Build Status

NOTE: This is still a work in progress, we are looking for feedbacks from Angular JS experts.

Reverse a sample SQL schema and generate a full S-CRUD SpringBoot/JPA/AngularJS Web Application.

S-CRUD means: Search, Create, Read, Update, Delete

The code generation is done by Celerio.

The generated application relies on:

  • Springboot
  • JPA
  • Angular JS

Requirements

  • Java 8
  • Maven 3.1.1
  • npm
  • bower

How to run it

Step 0: Download and install npm from https://nodejs.org/en/

try npm in a window shell to validate its installation

then install bower via: npm install -g bower

Step 1: Retrieve frontend libraries

bower install

Note: this command will download powerful Javascript librairies into src/main/resources/static/bower_components.

Step 2: reverse the sample SQL schema and generate the source code

From this folder run from:

mvn -Pdb,metadata,gen

Note: This command will create the sample H2 database, analyze it and then generate all sources into src/main/generated-java and src/test/generated-java.

Step 3: Run the app

mvn spring-boot:run

Step 4: access the app and play

http://localhost:8080/

Note: use the account admin (password: admin) to log in

Extra tip: delete generated code

mvn -PcleanGen clean

Contribute

You may contribute and you may of course report issues and/or submit pull requests.

See the WIKI (https://github.com/AVE-cesar/AngularDemoBackend/wiki) for more informations.

Travis CI Status Build Status

https://travis-ci.org/AVE-cesar/AngularDemoBackend.

Quality Gate

https://sonarcloud.io/organizations/ave-cesar-github/projects

codecov

About

A tool written in Java and AngularJs able to generate a complete Web application from an existing dababase model

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published