Closed happypeter closed 6 years ago
登录方案使用 JWT
首页要是静态页面,最大化加载速度。 好奇猫上的每一个免费课程页,都要可以作为一个 url 分享到微信,当人们在微信中打开它的时候,就是一个静态页的打开时间。
静态页面中添加一个动态服务也是完全没有问题的,类似这里的评论功能:http://happypeter.github.io/right-or-wrong.html
https://www.youtube.com/watch?v=uWTMEDEPw8c
使用 https://github.com/netlify/gotrue 这样的项目来实现认证
这些都是非常诱人的目标,暂时实现起来还是有困难,暂时放一放。
还是先使用 mongodb/createReactApp 思路来实现好奇猫。
JAM 架构可以很方便的实现代码分片,服务器端渲染。