https://github.com/mariocosenza/savoreco
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.
https://github.com/mariocosenza/savoreco
ajax amazon-corretto cloudflare-r2 dependabot fetch-api gradle hibernate intellij-idea jakarta-ee java java-21 javascript jsp jstl-tags oracle-cloud postgresql qodana servlet sonarcloud tomcat
Last synced: 7 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/mariocosenza/savoreco
- Owner: mariocosenza
- License: agpl-3.0
- Created: 2024-04-07T16:55:27.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-23T20:12:16.000Z (over 1 year ago)
- Last Synced: 2025-01-30T17:38:42.208Z (over 1 year ago)
- Topics: ajax, amazon-corretto, cloudflare-r2, dependabot, fetch-api, gradle, hibernate, intellij-idea, jakarta-ee, java, java-21, javascript, jsp, jstl-tags, oracle-cloud, postgresql, qodana, servlet, sonarcloud, tomcat
- Language: Java
- Homepage: https://www.savoreco.it
- Size: 6.38 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Savoreco: Sustainable Food Delivery
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:
```bash
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:
```xml
YOUR_ACCESS_KEY
YOUR_SECRET_KEY
```
For Radar API, update the keys accordingly:
```xml
YOUR_PUBLIC_API_KEY
```
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 [info@savoreco.it](mailto:info@savoreco.it).
**Join us in revolutionizing food delivery with Savoreco.**
## Authors
- [@giuseppecavallaro](https://github.com/GiuseppeCava03)
- [@mariocosenza](https://github.com/mariocosenza)
- [@mariofasolino](https://github.com/MarioFas)