DietLens is an innovative AI-powered platform designed to revolutionize the way you understand and manage your diet. Empowering individuals to make informed dietary choices and maintain a healthier lifestyle through advanced technology and seamless user experience.
The project is built using Springboot and React. The root repository is a springboot project and all frontend code is located within "frontend" directory. Frontend is built using Vite with React and Typescript.
Any changes made to the frontend needs to be followed by a build which should put all necessary javascript and assets into the src/main/resources
directory appropriately. Currently npm run build
takes care of this automatically.
Before executing the project, make sure you follow through following instructions.
AI Env Variables
The project requires communicating with OpenAI as well as Azure so please export following environment variables:export openai_api_key=<openai_api_key>
export azure_vision_api_key=<azure_vision_api_key>
export azure_vision_api_endpoint=<azure_vision_api_endpoint>
Ensure that you have followed all instructions from "Setup" section.
Now, you can run the application from the root directory of the repository.
- Compile:
mvn clean compile
- Run:
mvn spring-boot:run
The project should be ready at http://localhost:8080.