Get Started - ChuanyuWang/test GitHub Wiki
Follow the below steps to start development on this project
Prerequisite
Clone the code
- Create file
config.db.js
under Git root folder with your local MongoDB connect URL as below
module.exports = {
// this file is supposed to be overwritten in production environment
host : "localhost",
user : "admin",
pass : "pass"
};
- Run below commands under the Git root folder
npm install --registry=https://registry.npmmirror.com
bower install
npm run dev
Create super admin user, TBD
Create 1st test
tenant
Production model
npm run build
Route hierarchy
index
|-- /
|-- /login
|-- /logout
|-- /api
|-- /admin
|-- /cockpit
|-- /mygirl
|-- /t/:tenant
|-- /course
|-- /
|-- /:courseID
|-- base
|-- /home
|-- /class/:classID
|-- /member
|-- /member/:memberID
|-- /statistics
|-- /setting
|-- /booking
|-- /mybooking
|-- /myreadbooks
|-- /trial
|-- /finance
|-- /contract/create
|-- /contract/:contractID
|-- /app (TBD)
|-- /poster (TBD)
Logging
Find log which contains [ERROR]
string from out.log
file
grep "\[ERROR\]" out.log
Find logs from multi files starting with out__
, e.g.
grep "\[ERROR\]" out__*.log
Find log which contains [ERROR]
string from out.log
file, and display 3 lines before context, and 5 lines after context
grep "\[ERROR\]" -B 3 -C 5 out.log