https://classhelper.ml (user&pass: test)
Follow these instruments Installing MySQL on Linux
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
$ npm install
$ DEBUG=classhelper:* npm start
set DEBUG=classhelper:* & npm start
Open the address and port as you set in config file, default is http://localhost:3000
, recommended with Google Chrome.
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.
https://classhelper.ml (用户名和密码: test)
从这个教程学习 Installing MySQL on Linux
编辑 dao/dao.js
强烈建议你完整阅读配置文件,并修改其中你想要改变的设置。
MySQL配置是必需的
host: ip or host
user: username
password: password
database: databasename
charset: utf8mb4_unicode_ci
$ npm install
$ DEBUG=classhelper:* npm start
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
.
服务会在后台启动,并将错误记录和访问记录保存到文件。