模仿香奈儿官网
- 我做的这个项目,需要登录后才能加入购物车 => 登录注册功能需要配合后端使用 => 在本地数据库新建一个名为 chanel 的小仓库 => 我会把数据库文件放到 /src/lib/sql 目录下面,把数据库恢复到 chanel 的小仓库即可
- 后端的的两个接口文件,我放到 /src/lib/server 目录下,请把这两个文件放到服务器下面 => MAMP的放在htdocs/server/chanel文件夹下 => WAMP的放在WWW//server/chanel文件夹下 => http://localhost/server/chanel/login.php 按照这个层级关机
- 由于我用的是vscode的一个插件----Live Server,所以没做跨域请求的代理,你也用这个插件打开即可