npm run dev
npm run start
Files, docs, db, test db are stored in the following paths defined in config/path
.
module.exports.FILES_PATH = './files/'
Body:
{
"email": "user@email.com",
"user_name": "user",
"password": "pwd"
"time_zone": "+08:00"
"cell_phone": "12345678",
"email_signature": "",
"notification": "",
"picture_profile":"http://localhost:3000/api/file/949b4d70-a48d-11e8-a12f-dd03f72627a4.png"
}
Response:
HTTP Status: 200
{
"status": true
}
HTTP Status: 500
{
"status": false,
"error": error
}
Response:
{
"status": true,
"data": {
"courses": {
"calculus": {
"quizzes": {
"1": {
"english": "95",
"math": "99"
}
}
}
}
}
}
HTTP Status: 500
{
"status": false,
"error": "File Doesn't exist"
}
Response: HTTP Status: 200
{
"status": true
}
HTTP Status: 500
{
"status": false,
"error": "File Doesn't exist"
}