Application to record your mood and activities.
-
Clone this repository.
-
Install all dependencies:
npm i
-
Configure the
.env
file using the.env.example
file. -
Run the back-end in a development environment:
npm run dev
- POST/sign-up
Body:
{
"name": ,
"email": ,
"password": ,
"confirmPassword":
}
- POST/sign-in
Body:
{
"email": ,
"password":
}
- GET/humors
Get all your records or filter by mood.
Response:
{
"id": ,
"date": ,
"mood": ,
"activities": ,
"userId":
}
- POST/humor
Post your record.
Body:
{
"date": ,
"mood": ,
"activities":
}
- PATCH/humor/:id
Update your record.
Body:
{
"mood": ,
"activities":
}
- DELETE/humor/:id
Delete your record.
- GET/analysis
Get all your records.
Response:
{
"id": ,
"humorWhy": ,
"howToChange": ,
"userId":
}
- POST/analysis
Post your record.
Body:
{
"humorWhy": ,
"howToChange": ,
}
- PATCH/analysis/:id
Update your record.
Body:
{
"humorWhy": ,
"howToChange":
}
- DELETE/analysis/:id
Delete your record.