Skip to content

Savoreco is a cutting-edge web application built with Jakarta EE, focusing on promoting sustainable food practices. It serves as a platform for users to discover eco-friendly food options, understand the environmental impact of their dietary choices, and connect with a community of like-minded individuals.

License

Notifications You must be signed in to change notification settings

mariocosenza/savoreco

Repository files navigation

Savoreco: Sustainable Food Delivery

Release Badge

Welcome to Savoreco, the innovative web platform dedicated to delivering delicious, eco-friendly food right to your doorstep. Our mission is to provide a seamless connection between health-conscious consumers and sustainable food sources, ensuring every meal supports both your well-being and the planet's.

Features

  • Green Cuisine: Diverse menu with organic, locally-sourced, and seasonal ingredients.
  • Eco Packaging: Orders delivered in biodegradable or recyclable packaging.
  • Carbon Neutral Delivery: Offsetting carbon footprint through eco-friendly projects.
  • Community Support: Profits shared with local farms and green initiatives.

Technical Setup

Built With

  • Gradle: Automated build system.
  • Tomcat 10.1.24: Servlet container for web application deployment.
  • Amazon Corretto JDK 21: Latest Java features and performance enhancements.

Build Instructions

To build the WAR file, use the following command in your terminal:

gradle war

The WAR file will be located in the build/libs directory.

Deployment

Deploy the WAR file to Tomcat's webapps directory and access the application at:

http://localhost:8080/yourAppName

Configuring Tomcat and Hibernate for PostgreSQL

Tomcat Data Source Configuration

To integrate PostgreSQL with Tomcat, you need to define a JNDI data source in Tomcat's context.xml file. This involves specifying the database connection properties, such as the driver class, URL, username, and password. You will also set parameters like maxActive, maxIdle, and maxWait to manage the connection pool.

Hibernate Configuration Update

For Hibernate, you must update the hibernate.cfg.xml file to reflect the PostgreSQL database settings. This includes setting the correct dialect, driver class, and connection details. You'll also configure session management and, optionally, enable the display of SQL statements in the console for debugging purposes.

Remember to secure your database credentials. Instead of hardcoding them in your configuration files, especially for production, use environment variables or a secure configuration management system to handle sensitive information safely.

Amazon S3 and Radar API Configuration

Create a bucket.cfg.xml file in the resources directory with your Amazon S3 bucket keys:

<properties>
    <property name="accessKey">YOUR_ACCESS_KEY</property>
    <property name="ssecretKey">YOUR_SECRET_KEY</property>
</properties>

For Radar API, update the keys accordingly:

<properties>
    <property name="radarAPI.publicKey">YOUR_PUBLIC_API_KEY</property>
</properties>

Note: Do not commit real credentials to version control. Use environment variables or a secure secrets management service.

Engagement

Customers: Sign up for a discount on your first order. Partners: Collaborate with us for a sustainable future. Investors: Contribute to greener tomorrow.

Support

For inquiries or feedback, email us at [email protected].

Join us in revolutionizing food delivery with Savoreco.

Authors

About

Savoreco is a cutting-edge web application built with Jakarta EE, focusing on promoting sustainable food practices. It serves as a platform for users to discover eco-friendly food options, understand the environmental impact of their dietary choices, and connect with a community of like-minded individuals.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published