/orm-poc

Primary LanguageTypeScript

Humor Analysis

Application to record your mood and activities.

How to run for development

  1. Clone this repository.

  2. Install all dependencies:

npm i
  1. Configure the .env file using the .env.example file.

  2. Run the back-end in a development environment:

npm run dev

Documentation

  • 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.