Git Product home page Git Product logo

mybxg's Introduction

项目基于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搭建

mybxg's People

Contributors

zhangqian00 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.