GithubHelp home page GithubHelp logo

mpiorowski / react-spring-auth Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 3.88 MB

React and Spring application with fully working auth and logging components.

License: MIT License

Shell 0.38% Dockerfile 0.49% HTML 0.64% CSS 4.16% JavaScript 37.58% Java 49.99% PLpgSQL 1.05% PLSQL 0.54% TSQL 5.18%

react-spring-auth's Introduction

React and Spring application with fully working auth and logging components.

Frontend -> react + antd Backend -> spring boot + flyway + mybatis + postgres

  • Authorization via jwt tokens
  • Multi role support
  • Register functionality with authorization code
  • Rest communication via encrypted uuid
  • Postgres logging and auditing
  • Full docker deployment, ready for SSL
  • Base forum functionality for showcase
  • Swagger documentation...in progress

Deployment

Prerequisites and Dependencies

To run the application the only needed prerequisites are docker and docker-compose.

Dependencies needed when developing without docker: node, npm, java, gradle

Development deployment

Run the development docker setup with log output for all services using:

sh dev.sh

Access via http://localhost:3000

Production deployment with downsized containers and ssl certificate

Current build uses letsencrypt ssl certificate. If another one is installed, it need to be pointed in docker/docker-compose.prod.yml and docker/nginx-prod.conf files.

If letsencrypt is enough, instalation can be done using:

certbot-auto certonly --standalone -d your.domain.com  -d www.your.domain.com
openssl dhparam -out /etc/letsencrypt/ssl-dhparams.pem 2048

Replace all domain names with your.domain.com in docker/nginx-prod.conf file;

Run the production docker setup using:

sh prod.sh

Access via https://localhost or https://your.domain.com

Swagger

In progress...

react-spring-auth's People

Contributors

mpiorowski avatar

Watchers

 avatar  avatar

Forkers

emredenizozer

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.