A web app that automatically tracks your calories and macros based off photos of your meals.
- React
- Express
- PostgreSQL
- Tailwind
- Tensorflow
- Matplotlib
-
Install required dependencies:
npm run install
-
Run the queries in
queries.sql
to generate required PostgreSQL tables. -
Create a
.env
file in the root folder with the following variables:DB_HOST=localhost DB_USER=[YOUR_POSTGRES_USERNAME] DB_PASS=[YOUR_POSTGRES_PASSWORD] DB_DATABASE=[YOUR_POSTGRES_DB_NAME] JWT_SECRET=[YOUR_JWT_SECRET_KEY] JWT_EXPIRES=[YOUR_JWT_EXPIRATION_TIME] NUTRITIONIX_APP_ID=[YOUR_NUTRITIONIX_APP_ID] NUTRITIONIX_APP_KEY=[YOUR_NUTRITIONIX_APP_KEY]
-
Run the app on http://localhost:4001:
npm run dev