{"id":15134326,"url":"https://github.com/mariocosenza/savoreco","last_synced_at":"2025-10-23T09:31:29.515Z","repository":{"id":235888506,"uuid":"783353791","full_name":"mariocosenza/savoreco","owner":"mariocosenza","description":"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. ","archived":false,"fork":false,"pushed_at":"2024-12-23T20:12:16.000Z","size":6688,"stargazers_count":4,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T17:38:42.208Z","etag":null,"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"],"latest_commit_sha":null,"homepage":"https://www.savoreco.it","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mariocosenza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-07T16:55:27.000Z","updated_at":"2024-10-01T12:22:19.000Z","dependencies_parsed_at":"2024-05-19T00:19:13.671Z","dependency_job_id":"f512f128-d570-43d4-8b24-ffb4926ba655","html_url":"https://github.com/mariocosenza/savoreco","commit_stats":null,"previous_names":["mariocosenza/savoreco"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariocosenza%2Fsavoreco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariocosenza%2Fsavoreco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariocosenza%2Fsavoreco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariocosenza%2Fsavoreco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mariocosenza","download_url":"https://codeload.github.com/mariocosenza/savoreco/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237807490,"owners_count":19369597,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["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"],"created_at":"2024-09-26T05:04:28.416Z","updated_at":"2025-10-23T09:31:28.898Z","avatar_url":"https://github.com/mariocosenza.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Savoreco: Sustainable Food Delivery\n\u003cp\u003e\n\u003ca href= \"https://github.com/mariocosenza/savoreco/releases/latest\"\u003e\n\u003cimg alt=\"Release Badge\" src=\"https://img.shields.io/badge/release-1.0.0-brightgreen\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\nWelcome to **Savoreco**, the innovative web platform dedicated to delivering delicious, \neco-friendly food right to your doorstep.\nOur mission is to provide a seamless connection between \nhealth-conscious consumers and sustainable food sources, \nensuring every meal supports both your well-being and the planet's.\n\n## Features\n\n- **Green Cuisine:** Diverse menu with organic, locally-sourced, and seasonal ingredients.\n- **Eco Packaging:** Orders delivered in biodegradable or recyclable packaging.\n- **Carbon Neutral Delivery:** Offsetting carbon footprint through eco-friendly projects.\n- **Community Support:** Profits shared with local farms and green initiatives.\n\n## Technical Setup\n\n### Built With\n\n- **Gradle**: Automated build system.\n- **Tomcat 10.1.24**: Servlet container for web application deployment.\n- **Amazon Corretto JDK 21**: Latest Java features and performance enhancements.\n\n\n## Build Instructions\nTo build the WAR file, use the following command in your terminal:\n\n```bash\ngradle war\n```\n\nThe WAR file will be located in the `build/libs` directory.\n\n**Deployment**\n\nDeploy the WAR file to Tomcat's `webapps` directory and access the application at:\n```\nhttp://localhost:8080/yourAppName\n```\n## Configuring Tomcat and Hibernate for PostgreSQL\n\n### Tomcat Data Source Configuration\nTo integrate PostgreSQL with Tomcat, \nyou need to define a JNDI data source in Tomcat's `context.xml` file. \nThis involves specifying the database connection properties, such as the driver class, URL, username, and password. \nYou will also set parameters like `maxActive`, `maxIdle`, and `maxWait` to manage the connection pool.\n\n### Hibernate Configuration Update\nFor Hibernate, you must update the `hibernate.cfg.xml` file to reflect the \nPostgreSQL database settings. \nThis includes setting the correct dialect, driver class, and connection details. \nYou'll also configure session management and, optionally, \nenable the display of SQL statements in the console for debugging purposes.\n\nRemember to secure your database credentials. \nInstead of hardcoding them in your configuration files, especially for production, \nuse environment variables or a secure configuration management system to handle sensitive information safely.\n\n**Amazon S3 and Radar API Configuration**\n\nCreate a `bucket.cfg.xml` file in the `resources` directory with your Amazon S3 bucket keys:\n```xml\n\u003cproperties\u003e\n    \u003cproperty name=\"accessKey\"\u003eYOUR_ACCESS_KEY\u003c/property\u003e\n    \u003cproperty name=\"ssecretKey\"\u003eYOUR_SECRET_KEY\u003c/property\u003e\n\u003c/properties\u003e\n\n```\nFor Radar API, update the keys accordingly:\n```xml\n\u003cproperties\u003e\n    \u003cproperty name=\"radarAPI.publicKey\"\u003eYOUR_PUBLIC_API_KEY\u003c/property\u003e\n\u003c/properties\u003e\n```\nNote: Do not commit real credentials to version control. Use environment variables or a secure secrets management service.\n\n**Engagement**\n\nCustomers: Sign up for a discount on your first order.\nPartners: Collaborate with us for a sustainable future.\nInvestors: Contribute to greener tomorrow.\n\n**Support**\n\nFor inquiries or feedback, email us at [info@savoreco.it](mailto:info@savoreco.it).\n\n**Join us in revolutionizing food delivery with Savoreco.**\n\n## Authors\n\n- [@giuseppecavallaro](https://github.com/GiuseppeCava03)\n- [@mariocosenza](https://github.com/mariocosenza)\n- [@mariofasolino](https://github.com/MarioFas)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariocosenza%2Fsavoreco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmariocosenza%2Fsavoreco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariocosenza%2Fsavoreco/lists"}