简体   繁体   English

构建现代 webApp

[英]Building an modern webApp

I hope you are doing well.我希望你做得很好。

I have a fundermental question to the experienced developers here.我对这里有经验的开发人员有一个基本的问题。 I am planning to build a microservice web-application with java spring backend and react frontend.我打算用 java spring 后端和反应前端构建一个微服务 Web 应用程序。 I am experienced with java and I am learning react at the moment.我对 java 有经验,我现在正在学习反应。 I plan to host my application on my rancher single node cluster.我计划在我的牧场主单节点集群上托管我的应用程序。

I have a few questions to some points I havent figured out yet(sry Im a newbee)我有一些问题我还没有弄清楚(我是新手)

  1. How should I manage the user-login system?我应该如何管理用户登录系统? I have already done some web-development and built a login-sys with php for example but I have no idea what to use for a microservice-application with spring and react.例如,我已经完成了一些 Web 开发并使用 php 构建了一个登录系统,但我不知道使用 spring 的微服务应用程序使用什么并做出反应。 I mean every applaction needs a login system, is ther maybe already a "plug and play solution"?我的意思是每个应用程序都需要一个登录系统,是否可能已经是“即插即用解决方案”?

  2. Do you have some tips how to setup a database infrastructure for the project?您对如何为项目设置数据库基础架构有一些提示吗?

  3. I want to start with the application as fast as possible.我想尽快开始使用该应用程序。 It does not need to be perfect.它不需要是完美的。 I just want to have a platform to test and collect some experience.我只是想有一个平台来测试和收集一些经验。 What you think about the combination of sprint/react/rancher?您如何看待 sprint/react/rancher 的组合? Does anybody know a good guide to build an application like this?有人知道构建这样的应用程序的好指南吗?

I would be very happy if somebody can help me.如果有人可以帮助我,我会很高兴。 Thank you for your answers and have a nice day.感谢您的回答,祝您有愉快的一天。 :) :)

Best Mamo最好的妈妈

I can recommend keycloak open source IAM for authentication and authorization.我可以推荐使用keycloak开源 IAM 进行身份验证和授权。 In order to configure it:为了配置它:

  • front end you can use react-auth-config library前端你可以使用react-auth-config
  • backend you can use Spring Security You can check this post for Spring Boot and Keycloak:后端您可以使用Spring Security您可以查看这篇文章以了解 Spring 引导和密钥斗篷:

This will give you token based authentication For database, it is up to your entity relations.这将为您提供基于令牌的身份验证对于数据库,这取决于您的实体关系。 First you need to decide whether you need a relational one or not.首先,您需要确定是否需要关系型。 Then you can consider several options You can check this post然后你可以考虑几个选项你可以检查这个帖子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM