https://github.com/jonasrenault/angular-startr
A starter skeleton for applications using AngularJS and Java
https://github.com/jonasrenault/angular-startr
Last synced: 4 months ago
JSON representation
A starter skeleton for applications using AngularJS and Java
- Host: GitHub
- URL: https://github.com/jonasrenault/angular-startr
- Owner: jonasrenault
- Created: 2014-07-18T13:34:13.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-19T15:40:24.000Z (about 11 years ago)
- Last Synced: 2025-06-09T14:05:19.252Z (4 months ago)
- Language: JavaScript
- Size: 3.44 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A starter app for AngularJs and Java
This is a clean skeleton for an application that uses AngularJs for front end
and Java for back end.There is pretty much no code in there, just the necessary files to start developing straight away.
On the back end, [Spark](sparkjava.com) is used to create a very basic embedded server.
## Getting Started
Use git to clone this repository.
```
git clone git@github.com:jonasrenault/angular-startr.git
```### Install Dependencies
```
bower install & npm install
```### Run the Application
#### Dev
The angular part of the application was generated using the yeoman [generator](https://github.com/yeoman/generator-angular) for AngularJS.
Run `grunt serve` for preview. This will start an http server with livereload to serve your Angular app. This server is configured to proxy requests
on /app to `htpp://0.0.0.0:8080`. A browser window should open automatically once the server is ready.Run the App class as a Java main class from your IDE. It will start a server that listens on `http://0.0.0.0/8080`
#### Prod
Run `mvn clean install -Pprod`. This will first execute a `grunt build` that will prepare your angular app for production in `src/main/webapp/dist` and
copy it to `target/webapp`. It will then package both the angular app and the Java backend in an executable jar.
The App.java class is configured to serve static files in `target/webapp`.Execute `java -jar target/start-1.0-SNAPSHOT.jar`