Git Product home page Git Product logo

web-framework-for-java's Introduction

 _______                   __                __    __              __     
/       \                 /  |              /  \  /  |            /  |  
$$$$$$$  | _______    ____$$ | __    __     $$  \ $$ |  ______   _$$ |_   
$$ |__$$ |/       \  /    $$ |/  |  /  |    $$$  \$$ | /      \ / $$   |
$$    $$< $$$$$$$  |/$$$$$$$ |$$ |  $$ |    $$$$  $$ |/$$$$$$  |$$$$$$/   
$$$$$$$  |$$ |  $$ |$$ |  $$ |$$ |  $$ |    $$ $$ $$ |$$    $$ |  $$ | __ 
$$ |__$$ |$$ |  $$ |$$ \__$$ |$$ \__$$ | __ $$ |$$$$ |$$$$$$$$/   $$ |/  | 
$$    $$/ $$ |  $$ |$$    $$ |$$    $$ |/  |$$ | $$$ |$$       |  $$  $$/ 
$$$$$$$/  $$/   $$/  $$$$$$$/  $$$$$$$ |$$/ $$/   $$/  $$$$$$$/    $$$$/  
                              /  \__$$ |                                  
                              $$    $$/                                   
                               $$$$$$/                                    

Web Framework - A Starter Project for Spring Boot

NOTE : If JDBC exception occurred, please drop all tables and let it recreate automatically.

Getting Started

  1. Change data source(MYSQL) url in application.yml and create your database without tables (will be generated automatically)
  2. Install dependencies
  3. mvn spring-boot:run to run application
  4. Browse http://localhost:9090

Development

  • src/main/java/net/bndy/wf/modules: Java Modules (services and RESTful API)
  • src/main/java/net/bndy/wf/controller: Controllers
  • src/main/resources/templates: Thymeleaf Modules
  • src/main/resources/public/docs/api: Auto-generated API Documentation (Swagger UI)
  • src/main/resources/static/apps/admin: AngularJS Application for Admin Panel
    • src/main/resources/static/apps/admin/modules: AngularJS Modules
    • src/main/resources/static/apps/admin/modules/example: Style Examples

Recommend:

  • Non-Frontend

    You just use thymeleaf and not angularjs, you can define controllers in src/main/java/net/bndy/wf/controller and thymeleaf templates in src/main/resources/templates.

  • AngularJS

    You can implement api in src/main/java/net/bndy/wf/modules and angularjs controllers in src/main/resources/static/apps/admin/modules. Each feature should include one html file and one js file.

  • International (Languages)

    You can define both of backend languages and frontend languages in src/main/resources/i18n/. And you can use it in AngularJS modules directly.

OAuth Endpoints

  1. GET /oauth/authorize?response_type=code&scope&client_id&redirect_uri

    Redirect to redirect_uri?code=...

  2. POST /oauth/token?grant_type=authorization_code&client_id&client_secret&code&redirect_uri

    {
        "access_token": "",
        "token_type": "bearer",
        "refresh_token": "",
        "expires_in": 10000,
        "scope": "",
        "avatar": "",
        "username": "yourname"
    }

web-framework-for-java's People

Contributors

bndynet avatar maciez avatar csheller 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.