Giter Site home page Giter Site logo

springboot-h2-loginreg's Introduction

User(Registration & Login) with SpringBoot & H2

User (Registration & Login) using Spring Boot, Data JPA, in-memory H2 db.

Application Requires/Java Dependencies(Windows):

  • Java JDK 1.8 (Download from here)
  • Maven (Download from here)
  • Spring Boot
  • Spring Web
  • Spring Data JPA
  • H2 database(embedded)

Application Requires/Java Dependencies(Linux):

  • Java JDK 1.8 ( Java for Alpine # apk add openjdk8)
  • Maven
  • Spring Boot
  • Spring Web
  • Spring Data JPA
  • H2 database(embedded)

Front end UI:

  • Html,CSS & JSP(Java Server Pages)

Backend(Database)

  • Browse: http://localhost:8080/h2-console
  • Setting Name: Generic H2 (Embedded)
  • Driver Class: org.h2.Driver
  • JDBC URL: jdbc:h2:mem:userDb
  • UserName: sa
  • Password: 123

Run the -war / -jar from target:

$ java -jar target/name-of-SNAPSHOT.jar

Make sure to use java 1.8

java -version

Windows

$ set JAVA_HOME="$(c:\\program files\\openlogic-openjdk-8u372-b07-windows-64)"

Linux/Mac OS

$ export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"

Build + Run:

$ mvn clean

$ mvn install

$ mvn spring-boot:run

Steps for running different modules:

if your PORT: 8080 and then you can follow steps: Host: localhost

1)/signup

2)/login

  • Browse http://localhost:8080/
  • Select login link.
  • Add email and password.
  • User is redirected to dummy page after successful login.

Note- Embedded database is used so every time project is relaunched signup must be done before login or Else, sample data is stored in resources/data.sql file

springboot-h2-loginreg's People

Contributors

mujahed85 avatar

Watchers

 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.