MoodIO is a (set of) application(s) to get an insight in the mental and
possibly phisical state of people. Primarily aimed at children to assist their
doctor in evaluating their well being.
TODO
The application knows three environments, testing
, development
and
production
. Depending on the environment, some aspects may behave
differently. You can set the environment by setting the NODE_ENV
variable in
the shell starting the application.
In addition, the database configuration can be created using environment
variables as well. For this, you can use DB_USERNAME
, DB_PASSWORD
,
DB_DATABASE
, DB_HOST
and DB_DIALECT
. Keep in mind that the config
generation only runs if the config/database.json
does not exist yet.
Request Body |
Type |
username |
String |
password |
String |
Request Body |
Type |
username |
String |
password |
String |
Request Body |
Type |
genreName |
String |
Request Body |
Type |
genreName |
String |
Request Body |
Type |
genreName |
String |
Request Body |
Type |
genreName |
String |
Request Body |
Type |
genreName |
String |
Request Body |
Type |
genreName |
String |
Request Body |
Type |
mood |
String |
Request Body |
Type |
newMood |
String |
Request Body |
Type |
mood |
String |
Request the current user's current mood.
Changes the mood and puts the mood into history
Request Body |
Type |
moodId |
Integer |
First ten moods in history
The x amount
Request Body |
Type |
username |
String |
password |
String |
Request Body |
Type |
username |
String |
password |
String |
Request Body |
Type |
name |
String |
description |
String |
scaleItems |
String (Comma Seperated Values) |
Request Body |
Type |
songId |
INT |
moodId |
INT |
scaleScore |
String |
Request Body |
Type |
updateItems |
Array (id, name, description, scaleItems) |
Request Body |
Type |
removeItems |
Array (id) |
Returns the previously listened to song of the current user.
Returns a list of the previously listened to songs of the current user. The
size of the list is dependant on :count
.
- Indent using tabs.
- Alignment using spaces, if you want alignment at all.
TODO