.
├── Dockerfile                                      file containing docker setup (won't change)
├── README.md                                       file containing details of how to setup the project locally
├── config
│ └── config.js                                     general config file to add things used across the app
├── controllers
│ ├── forgotpassword.controller.js                  controller file with functions for each forgot password action
│ ├── score
│ │ ├── additives.json                              file with the list of all additives used on the score calculation
│ │ ├── first_ingredient.json                       file with the list of all first ingredients used on the score calculation
│ │ ├── getNutritionFeedback.js                     file with a function to return a random nutrition feedback based on the calculated score
│ │ ├── getScoreFeedback.js                         file with a function to return a random score feedback based on the calculated score
│ │ ├── nutritionFeedback.json                      file with a list of all possible nutrition feedbacks for each range of score
│ │ ├── score.controller.js                         file with a list of all possible score feedbacks for each range of score
│ │ └── scoreFeedback.json
│ ├── usda.controller.js                            controller file with call to the usda api
│ └── user.controller.js                            controller file with functions for each user action
├── middlewares
│ ├── decodeToken.js                                middleware that decodes the firebase token to see if authentication is valid
│ ├── errorHandler.js                               middleware to handle errors
│ └── isAdmin.js                                    middleware to check if the user making the request is admin
├── package-lock.json
├── package.json                                    file containing dependencies and project setup
├── routes
│ ├── contact.routes.js                             all routes related to contact
│ ├── forgotpassword.routes.js                      all routes related to forgot password
│ ├── score.routes.js                               all routes related to score
│ ├── usda.routes.js                                all routes related to usda
│ ├── user.routes.js                                all routes related to non-existing users
│ └── users.routes.js                               all routes related to existing users
├── server.js                                       file that starts the server and setup middlewares
├── serviceAccount.json                             file with firebase keys
└── tree.txt                                        file with project structure information

6 directories, 29 files
