####
角色:房东,房客
项目结构:前后端分离,
第一点,前后端分离,可以支持多端,前后端分离越来越流行,
第二点,前后端分离,后端只处理数据,不负责前端展示,这也是趋势,后端更加重视逻辑处理,而前端也更加的重了,这也是前端火的原因,
第三点,前后端分离,有一个缺点,搜索引擎优化的问题,seo优化,因为爬虫访问网址是没有渲染的,是没有数据的,是要Ajax异步加载数据的,所以会有问题,
怎么判断,不要在element里面找,这个是渲染好的,要看source,如果source里面是有的,就是后端渲染的,否则就是前端渲染的,
###
项目结构:
1,需要考虑到数据库
2,考虑redis
3,考虑session
4,考虑csrf校验,
5,日志,
文件分拆
####
数据库创建,
用户
房屋
订单
区域
设备
图片
###
csrf的验证逻辑,
##
验证码的验证逻辑
###
####