Code Monkey home page Code Monkey logo

secured-spring-boot-webapp-template's Introduction

Secured Spring Boot App Template

About

This is a template for a Secured Spring Boot App with login and registration functionality for quick bootstrapping of secured Spring Boot projects.

It was made using Spring Boot, Spring Security, Thymeleaf, Spring Data JPA, Spring Data REST. Database is in memory H2.

How to run

You can run the application from the command line with Maven. Or you can build a single executable JAR file that contains all the necessary dependencies, classes, and resources, and run that. Go to the root folder of the application and type:

./mvnw spring-boot:run

Or you can build the JAR file with

./mvnw clean package

Then you can run the JAR file:

java -jar target/secured-app-0.0.1-SNAPSHOT.jar

The application should be up and running within a few seconds.

Go to the web browser and visit http://localhost:8099/home

Admin username: admin

Admin password: admin

User username: user

User password: password

In /src/main/resources/application.properties file it is possible to change admin username/password, as well as change the port number.

Helper Tools

HAL REST Browser

Go to the web browser and visit http://localhost:8099/

You will need to be authenticated to be able to see this page.

H2 Database web interface

Go to the web browser and visit http://localhost:8099/h2-console

In field JDBC URL put

jdbc:h2:mem:secured_template_db

In /src/main/resources/application.properties file it is possible to change both web interface url path, as well as the datasource url.

secured-spring-boot-webapp-template's People

Contributors

reljicd avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.