Giter VIP home page Giter VIP logo

classhelper's Introduction

classhelper 课堂助手 (Developing)

Online Version(supports Github Webhook)

https://classhelper.ml (user&pass: test)

Install and Run MySQL

install

Follow these instruments Installing MySQL on Linux

config

Edit config.yml

It's strongly recommended to read the whole config file and change the settings as you want.

MySQL config is required.

host: ip or host
user: username
password: password
database: databasename
charset: utf8mb4_unicode_ci

Install requirements and Run classhelper

install requirements

$ npm install

Linux or MacOS run (For debug)

$ DEBUG=classhelper:* npm start

Windows run (For debug)

set DEBUG=classhelper:* & npm start

Enjoy it

Open the address and port as you set in config file, default is http://localhost:3000, recommended with Google Chrome.

Use as production

There are many ways to help you run this application as production.
One of them is forever

Install it with npm run npm install forever -g.
In classhelper's folder, run forever -e error.log -o access.log start bin/www.

The server will run in background and output the error log and access log to the files.

简体中文说明

在线版本 (支持 Github Webhooks)

https://classhelper.ml (用户名和密码: test)

安装和运行MySQL

安装

从这个教程学习 Installing MySQL on Linux

配置

编辑 dao/dao.js

强烈建议你完整阅读配置文件,并修改其中你想要改变的设置。

MySQL配置是必需的

host: ip or host
user: username
password: password
database: databasename
charset: utf8mb4_unicode_ci

安装依赖并运行“课堂助手”

安装依赖

$ npm install

Linux 或 MacOS 执行 (debug模式)

$ DEBUG=classhelper:* npm start

Windows 执行 (debug模式)

set DEBUG=classhelper:* & npm start

开始使用

打开你设置的监听地址和端口,默认是http://localhost:3000, 建议使用 Google Chrome.

作为产品使用

有许多方法可以让你运行这个应用,作为一个产品而不是调试模式。
其中一个是 forever

用npm安装它,执行 npm install forever -g.
在本应用的根目录,执行 forever -e error.log -o access.log start bin/www.

服务会在后台启动,并将错误记录和访问记录保存到文件。

classhelper's People

Contributors

junolym avatar zuozhuanz avatar liwenssss avatar chenxrin 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.