Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/primaryobjects/weight-tracker
Weight tracker web app using the Large Language Model (LLM) Cohere with the EntityFramework, Sqlite, and React.js.
https://github.com/primaryobjects/weight-tracker
ai cohere csharp database dotnet linq react reactjs sqlite web
Last synced: 9 days ago
JSON representation
Weight tracker web app using the Large Language Model (LLM) Cohere with the EntityFramework, Sqlite, and React.js.
- Host: GitHub
- URL: https://github.com/primaryobjects/weight-tracker
- Owner: primaryobjects
- Created: 2024-06-16T03:36:36.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-17T20:49:45.000Z (5 months ago)
- Last Synced: 2024-10-18T07:22:25.599Z (about 1 month ago)
- Topics: ai, cohere, csharp, database, dotnet, linq, react, reactjs, sqlite, web
- Language: JavaScript
- Homepage:
- Size: 589 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Weight Tracker
==============An intermittent fasting weight tracking app.
## About
Weight Tracker is a simple web application for entering weight records, including date, weight, and notes.
The app displays a chart of the overall trend in weight change.
The app also provides an AI analysis of the weight trend using a custom prompt specific to an intermittent fasting weight loss regime.
## Screenshot
![Weight Tracker app](screenshot.png)
## Quick Start
Install the required libraries in VSCode before running the project.
1. Open a Terminal in VSCode.
2. `dotnet add package Microsoft.EntityFrameworkCore.Design`
3. `dotnet add package Microsoft.EntityFrameworkCore.Sqlite`
4. `dotnet tool install --global dotnet-ef`
5. Create a file `.env` with the contents:
```
CohereApiKey=
OpenAIApiKey=
````*You can register a Cohere API key [here](https://dashboard.cohere.com/api-keys).*
*You can register an OpenAI API key [here](https://platform.openai.com/account/api-keys).*
### Customizing the Analysis
The smart analysis of the weight trend can be customized through prompt engineering via the textbox provided. Any custom prompt entered is appended onto the standard prompt used by the program when generating an analysis.
Example 1: "Give the analysis in a fairy tale story format to make it more appealing and happy."
Example 2: "Consider that my height is 5'5", female, what recommendations would you make for an ideal weight and what vegan foods can I eat to achieve this goal?"
### Deployment
To build a deployment for hosting on a web server, use the following steps.
1. In Visual Studio Code, run the **Publish** build step. This performs the following steps automatically:
```
cd ClientApp
npm run build
cd ..
dotnet publish -c Release -o ./publish
```
2. Copy the database files `*.sqlite` into `/publish`.
3. Copy the `.env` file into `/publish` and add your API key for Cohere.
4. Run the executable `/pubish/weight_tracker.exe`The web application will begin running on port 5000. The executable is a self-contained web server, similar to a node.js application, and may be deployed to a Windows web server or Microsoft Azure.
## Tech Stack
- Visual Studio Code
- C# .NET 8.0
- MVC
- React.js
- EntityFramework
- Sqlite
- LLM Cohere and OpenAI## License
MIT
## Author
Kory Becker http://www.primaryobjects.com/kory-becker