Skip to content

Simple user login and registration app leveraging i18next and react-i18next that allows multi-lingual web app

Notifications You must be signed in to change notification settings

desmondtong/Login-Registration-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Login Registration App

Simple user login and registration app leveraging i18next and react-i18next that allows multi-lingual web app.

English

image

Mandarin

image


Setup

Java Backend

All the backend code is in the JWTAuth directory. Run all backend commands from inside that directory.

Create Database

Create database using this sql file.

Setup application.yml

Configure .yml to connect to the database:

spring:
  datasource:
    url: jdbc:postgresql://localhost:5432/registration
    username: ""
    password: ""
    driver-class-name: org.postgresql.Driver
  jpa:
    hibernate:
      ddl-auto: create-drop
    show-sql: false
    properties:
      hibernate:
        format_sql: true
    database: postgresql
    database-platform: org.hibernate.dialect.PostgreSQLDialect

React Front-end

All the frontend react code is in the Frontend directory. Run all frontend commands from inside that directory.

Setup .env for Front-end

Create a new .env file in the front-end directory and add the following lines:

VITE_SERVER=http://localhost:8080

Run the app

npm i
npm run dev

Languages and Technologies Used

Front-end

  • React
  • TypeScript
  • CSS
  • Material UI

Back-end

  • Java
  • Spring Boot
  • Spring Security
  • JWT
  • Database: PostgreSQL
  • Driver: Node-progres (pg)

Others

  • React i18next

References

  1. React i18next Tutorial
  2. Spring Boot 3 + Spring Security 6 - JWT Authentication and Authorisation
  3. React i18next

About

Simple user login and registration app leveraging i18next and react-i18next that allows multi-lingual web app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published