Git Product home page Git Product logo

room-reservation-service-yii2's Introduction

学生活动场地申请及管理系统

本项目为南开大学学生活动场地申请系统(学生端)以及一个对应的管理系统(教师端)。

项目基于 Yii2 框架制作。

演示网站

学生活动场地申请系统 https://rrs.alumik.cn/

学生活动场地管理系统 https://rrs.alumik.cn/admin/

部署步骤

  1. 下载文件

    使用 git clone 将网站文件下载至部署目录。

  2. 安装依赖

    在网站根目录执行 composer install 安装依赖文件。

  3. 初始化项目

    在网站根目录执行 php init (Linux)或 init.bat (Windows),选择 Production

  4. 配置服务器(以 Apache2 为例)

    4.1. 将前台网站根目录设置为 frontend/web ,后台网站根目录设置为 backend/web ,入口文件均为 index.php

    4.2. 启用 Apache2 插件。

    a2enmod rewrite
    a2enmod ssl
    service apache2 restart

    4.3. 配置 URL 转写。

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php
    
  5. 配置数据库

    5.1. 数据库中新建一个数据库并导入 database/database.sql 。默认管理员账号 0000000 ,密码 000000 。默认用户账号 0000000 ,密码 000000

    5.2. 修改 common/config/main-local.php ,写入数据库配置信息和邮箱配置信息,例如:

    <?php
    return [
        'components' => [
            'db' => [
                'class' => 'yii\db\Connection',
                'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
                'username' => 'root',
                'password' => '',
                'charset' => 'utf8',
            ],
            'mailer' => [
                'class' => 'yii\swiftmailer\Mailer',
                'viewPath' => '@common/mail',
            ],
        ],
    ];

room-reservation-service-yii2's People

Contributors

alumik avatar harukama avatar

Watchers

 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.