thinkle / gourmet

Gourmet Recipe Manager
GNU General Public License v2.0
341 stars 141 forks source link

Fork of Gourmet created as a web application #1032

Closed mtsinc1 closed 2 years ago

mtsinc1 commented 2 years ago

Steps to Reproduce

Running Gourmet on recent versions of Fedora Linux has become very difficult

Expected Behavior

Would like to return the system to its original glory (and utility!)

Current Behavior

Now that Python 2 is dead, Gtk has been completely changed and various other breakages have occurred past and present. it is difficult to impossible to run Gourmet on Fedora Linux and other modern Linux distros. When possible, essential features such as printing recipes are often not available

Possible Solution

I looked at the possiblity of upgrading the existing project, but A) too many big things are too broken for my limited Python expertise (including things that aren't directly Python-related) and B) having worked with the app for many years, breakage from external causes has been a recurrent problem. The project would require more time and resources than it currently has to keep abreast of these externalities, so I've taken the liberty to re-engineer it from scratch on a platform that is inherently designed to be "future-proof".

Environment

The forked version runs as a Java Enterprise Edition (JEE) web application and operates against a copy of the Gourmet recipe.db file. At the moment, it consists of 2 pages: the search/display page and a recipe detail page. Search is presently minimal (works best on single words) and you cannot add or edit recipes, but it's good at least for looking up existing recipes.

Because Java is "write-once/run-anywhere", the webapp will operate on any OS that supports Java (Windows, Linux, OSX, probably IBM z/OS and BSD). Because it's a webapp, there is no concern that the GUI will suddenly turn upside down like Gtk did. It uses the Java Persistence Architecture for database interfacing, so there's future potential for other database platforms. In fact, wherever possible well-documented industry-standard components have been used.

Presently to run the app you have to install and setup a Tomcat server (Tomcat 9 recommended). You need Maven and Java 11 to build. Plans call for eventually making this a Spring Boot app, which will make it completely self-contained and much easier for the casual user to work with. A container-based solution is also likely. I like containers.

Source code can be found at https://gogs.mousetech.com/mtsinc7/GourmetJ Be kind. There is a LOT of work to do yet.

mtsinc1 commented 2 years ago

Milestone

I have an updated demo of the webapp version at https://gourmetj.mousetech.com/gourmet

This version is designed to be able to create, browse, view and edit recipes. It runs off the original gourmet database schema.

mainpage

details

MarkP2015 commented 2 years ago

Clicking out to the above link brings my Firefox to a yellow border page which reads:

Warning: Potential Security Risk Ahead

Firefox detected a potential security threat and did not continue to gourmetj.mousetech.com. If you visit this site, attackers could try to steal information like your passwords, emails, or credit card details.

What can you do about it?

The issue is most likely with the website, and there is nothing you can do to resolve it. You can notify the website’s administrator about the problem.

thinkle commented 2 years ago

Note: I have a web application at gourmetrecipemanager.com which Ive been using for a year or so. It's a complete rewrite rather than related to gourmet in any direct way (except the author is the same person and I have many of the same design goals). Feel free to check it out -- I haven't put time into it for a while... I went down a nutrition rabbit hole a while ago and haven't finished that branch of code :)

Tom

On Sun, Feb 13, 2022, 3:47 PM Mark Preston @.***> wrote:

Clicking out to the above link brings my Firefox to a yellow border page which reads:

Warning: Potential Security Risk Ahead

Firefox detected a potential security threat and did not continue to gourmetj.mousetech.com. If you visit this site, attackers could try to steal information like your passwords, emails, or credit card details.

What can you do about it?

The issue is most likely with the website, and there is nothing you can do to resolve it. You can notify the website’s administrator about the problem.

— Reply to this email directly, view it on GitHub https://github.com/thinkle/gourmet/issues/1032#issuecomment-1038418054, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAELYWYFFKAPLEI5J2VC2A3U3AKGTANCNFSM5I4MPJHQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

mtsinc1 commented 2 years ago

Yes, the site at https://gourmetj.mousetech.com will give a security warning. I don't have a generic SSL certificate for all the mousetech.com sites, and so it gets mad that the www.mousetech.com cert doesn't match the site name gourmetj.mousetech.com. You can safely "accept the risk." I hope to fix that isisue eventually, but I'm afraid to break the other mousetech.com sites so it has to wait until I have time to ensure I do the job properly.

I should note that that site is just a demo using my recipe database. You would likely prefer to install a copy of it on your own desktop with your own database, in which case the security problem doesn't apply.

Best Regards,

  Tim

On Sun, 2022-02-13 at 13:23 -0800, Tom Hinkle wrote:

Note: I have a web application at gourmetrecipemanager.com which Ive been using for a year or so. It's a complete rewrite rather than related to gourmet in any direct way (except the author is the same person and I have many of the same design goals). Feel free to check it out -- I haven't put time into it for a while... I went down a nutrition rabbit hole a while ago and haven't finished that branch of code :)

Tom

On Sun, Feb 13, 2022, 3:47 PM Mark Preston @.***> wrote:

Clicking out to the above link brings my Firefox to a yellow border page which reads:

Warning: Potential Security Risk Ahead

Firefox detected a potential security threat and did not continue to gourmetj.mousetech.com. If you visit this site, attackers could try to steal information like your passwords, emails, or credit card details.

What can you do about it?

The issue is most likely with the website, and there is nothing you can do to resolve it. You can notify the website’s administrator about the problem.

— Reply to this email directly, view it on GitHub https://github.com/thinkle/gourmet/issues/1032#issuecomment- 1038418054, or unsubscribe https://github.com/notifications/unsubscribe- auth/AAELYWYFFKAPLEI5J2VC2A3U3AKGTANCNFSM5I4MPJHQ . Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification

email&mt=8&pt=524675> or Android

< https://play.google.com/store/apps/details?id=com.github.android&refer rer=utm_campaign%3Dnotification- email%26utm_medium%3Demail%26utm_source%3Dgithub>.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you modified the open/close state.Message ID: @.***>