/polls-spring-boot

Spring Boot implementation of polling application - register, create a poll & vote.

Primary LanguageJava

Build Status

Spring Boot & Angular (6) implementation of polling application -example of fullstack application.

Demo:

https://polls-spring-boot.herokuapp.com/

Test credentials:

  • username: "user" or "admin"
  • password: "password"

Features:

  • JWT auth with user/admin role system
  • how to bundle Angular & Spring Boot
  • simple login/registration
  • CRUD on users/polls
  • admin view
  • voting on polls/viewing results

Installation:

To run, build backend & frontend; frontend files are copied to over to static folder with npm scripts, which is served by Spring.

  • cd frontend
  • npm install
  • npm run build
  • cd ..
  • mvn package
  • java -jar target/polls-0.0.1-SNAPSHOT.jar

There is a similar project where I used NodeJs: https://github.com/kle-pra/polls-node