This project is an application skeleton for a SpringBoot & AngularJS web app. You can use it to quickly bootstrap your web app projects or a java microservice.
spring-boot-starter-web
to create a stand-alone Spring applicationsspring-boot-starter-data-jpa
to access database with JPAMySQL
the Java SQL databasespring-boot-starter-test
to create a Spring Unit test
angularjs
the popular JavaScript-based front-end web application frameworkng-table
simple table with sorting and filtering on AngularJSrestangular
AngularJS service that simplifies common GET, POST, DELETE, and UPDATE requestsbootstrap
the popular HTML, CSS, and JS framework for developing responsive, mobile first projects
To get you started you can simply clone this repository and install the dependencies.
- JDK 1.8
- Maven 3.0+
- Eclipse or other IDE
mvn clean package
java -jar webapp-springboot-angularjs-seed.jar
then browse to the app at http://localhost:8080/index.html
## RESTful APIs
* get info of all users
`GET /users`
* create a new user
`POST /users`
* get a user
`GET /users/{id}`
* update a user
`PUT /users/{id}`
* delete a user
`DELETE /users/{id}`
* Request Parameters
* JSON format: `{"name":"string","age":int}`
* Response Messages
* Success
* 200 OK
* Failure
* 400 Bad Request
* 404 User Not Found or Not Found
* 500 Internal Server Error