实现渐进式 Web 应用程序时,本地数据库的最佳选择是什么?
最初的选择是设计一个智能客户端桌面应用程序,通过一键部署来安装本地 SQLite 数据库。然后可以使用 Microsoft Sync Framework 将本地数据库与服务器端 SQL 数据库同步。
然而,随着未来支持移动设备的用例,我更感兴趣的是使用本地 SQL 数据库开发渐进式 Web 应用程序以支持离线模式(对于没有任何互联网连接的用户)。
考虑到 React PWA 堆栈,我找不到 SQLite 的干净实现。IndexDB 可用,但它不像 SQL。
关于如何使用持久本地 SQL 数据库实现 PWA 离线模式有任何反馈吗?
sqlite smartclient microsoft-sync-framework reactjs progressive-web-apps
尝试将StormPath与Spring Boot集成,接收多个错误.以下是应用程序设置.
使用stormpath-default-spring-boot-starter 1.2.1版.
1) application.properties contains only stormpath id, secret and href as follows,
stormpath.client.apiKey.id = <id>
stormpath.client.apiKey.secret = <secret>
stormpath.application.href = <href>
2) SpringSecurityWebAppConfig.Java (Override spring security)
@Configuration
public class SpringSecurityWebAppConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.apply(stormpath());
}
}
When application is run,
------------------------
1) http://localhost:8080/register renders register screen.
2) http://localhost:8080/login (GET) throws error "Unable to invoke StormPath controller: Resolved account store cannot be an Organization".
3) http://localhost:8080/login (POST) (from PostMan) throws …Run Code Online (Sandbox Code Playgroud)