Giter Club home page Giter Club logo

ghipster's Introduction

gHipster

Simple project to quickly start developing a web application using AngularJS and Spring boot. This configuration uses gradle and webpack.

Requirements

  1. java >= 1.8
  2. nodejs >= 5.0 (need ES2015 support)

What's inside

Backend:

  • Gradle
  • Spring boot
  • Spock test framework

Frontend:

  • Webpack
  • AngularJS 1.x
  • Karma/Jasmine unit tests

Frontend was copied from webpack-angular-es6

To do after clone

./gradlew build

This should invoke for you npm install and get frontend dependencies.

Developement mode

You interact with app on this address:

http://localhost:9090/

It's a webpack dev server which proxies requests to backend. If you go to localhost:8080 will be served static files from backend/src/main/resource/public so no changes in frontend dir will affect your ui.

  • backend:

    ./gradlew bootRun
    

    or from ide:

    run WebsiteApplication
    

    When working with intelij IDEA you need to compile after each change to make auto-reload work :( Automatic restart

  • frontend: with cd frontend

    npm start
    

    This command starts webpack that is hotreloading and proxies all calls to /api/* to backend

Build distribution

This command will build fat-jar:

./gradlew build

Serve distribution

Start your distribution:

java -jar backend/build/libs/gHipster-0.1.0.jar

Useful links

ghipster's People

Contributors

johnykov avatar

Stargazers

Prignony avatar Sion Smith avatar Valeriu Zdrobău avatar Gaurav avatar  avatar David Molinero avatar tom.wen avatar Jonas Havers avatar

Watchers

Gaurav avatar James Cloos avatar  avatar Prignony avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.