nubiofs / angular-jwt-undertow-resteasy

A small all-one-one project which includes an embedded java backend, AngularJS fronted, with JWT token authentication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

This repo is based on the following two repos:

  • simple-server: A small embedded java server, which can serve static content, and REST APIs. It's based on Undertow and RESTEasy.
  • angularjs-minimal: A simple starter project template for AngularJS.

What is this?

This project adds the following items to the above two base repo:

  • Filter intercept on the server
  • login form
  • JWT token authentication (JWT=Json Web Token).

How to run?

  • cd src/main/resources/static/

  • npm install -g bower

  • bower install bootstrap ui.bootstrap angular-bootstrap angular-ui-router

  • cd ../../../../

  • mvn clean package

  • java -jar target/app.jar

  • Point browser to: http://localhost:6060/static/

  • (use one of the following to login)
  • guest/welcome
  • hello/world
  • world/peace

About

A small all-one-one project which includes an embedded java backend, AngularJS fronted, with JWT token authentication


Languages

Language:Java 59.7%Language:CSS 18.0%Language:JavaScript 13.0%Language:HTML 9.4%