Junior2Ran / superMall

电商平台移动端前端(通过手机或者调试工具预览)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

superMall

电商平台移动端前端
微信开发者服务端请点击:电商平台移动端微信开发者服务端

技术框架

react + antd-mobile + webpack

环境搭建说明

  1. 将本仓库代码克隆到本地
git clone https://github.com/Junior2Ran/superMall.git
  1. 安装npm依赖包
cd .\superMall
npm install
  1. 本地服务器预览可以通过
npm run server

然后访问localhost:8080来查看本地效果

  1. 针对线上环境,首先打包
npm run build

然后找到文件目录下的dist文件夹,即是打包过后的内容(一个index.html文件,一个js文件夹)
PS.暂时images文件夹无法打包到dist内,需要手动复制粘贴build目录下或src/static目录下的images文件夹到dist内,同时build目录和src/static目录下的文件也只能手动同步。

  1. 上传到线上服务器,部署到公众号
    详细操作请访问:supermallDemo说明文档
    将打包好的文件布置在supermallDemo项目中对应的位置,上传更新后的supermallDemo到github,然后在服务端pull下代码。

About

电商平台移动端前端(通过手机或者调试工具预览)


Languages

Language:JavaScript 94.7%Language:CSS 4.4%Language:HTML 0.9%