Skip to content

zhangqian00/mybxg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

项目基于requireJS

登录页

image login

主页

image index

个人中心

image user

讲师管理

image tc

查看讲师

image tc_preview

添加讲师

image tc_add

编辑讲师

image tc_info

课程列表

image course

课程信息

image course_info

课程图片

image course_pic

课时管理

image lesson

编辑课时

image lesson_info

测试前准备

  • 将mybxg-api后台数据down到本地
  • mybxg-doc为接口文档
  • 将mybxg项目down至本地E盘,根据下方例子配置本地环境

本地测试需要搭建自己的环境(以Apache为例)

将项目文件放到E盘为例

Apache配置

配置网站跟路径(239行)

DocumentRoot "e:/mybxg/"
<Directory "e:/mybxg/">

配置虚拟主机

步骤一:httpd.conf文件498行

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

步骤二:extra/httpd-vhost.conf文件

<VirtualHost *:80>
    DocumentRoot "e:/mybxg/mybxg"
    ServerName mybxg.com
    ServerAlias www.mybxg.com
    ProxyPass /api http://api.studyit.com
</VirtualHost>
<VirtualHost *:80>
    DocumentRoot "e:/mybxg/doc/studyit-doc/preview/"
    ServerName doc.studyit.com
    DirectoryIndex doc.html
</VirtualHost>

步骤三:配置hosts文件(C:\Windows\System32\drivers\etc\hosts)

127.0.0.1       mybxg.com
127.0.0.1       www.mybxg.com
127.0.0.1       doc.mybxg.com

步骤四:重启Apache服务器

配置反向代理(解决跨域问题)

步骤一:配置httpd.conf文件(134行和142行)

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

地址栏隐藏index.php配置

步骤一:拷贝.htaccess文件到项目根目录

步骤二:配置httpd.conf文件(149行)

LoadModule rewrite_module modules/mod_rewrite.so

步骤三:配置httpd.conf文件(260行)

AllowOverride All

mybxg-sql本地数据库MySQL搭建

About

使用jQuery,Bootstrap和RequireJS实现的案例项目

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published