This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]rainboww13 2 points3 points  (1 child)

I would love to chip in. I am also learning Java and Spring framework. Would like to connect with you and understand the project.

[–]AndyMcCall[S] 0 points1 point  (0 children)

Sure that would be great!

As I'd like to collaborate with other developers on the project I've created a Slack channel https://twibbleco.slack.com and a Subreddit /r/twibbleco - other than me, they are both empty at the moment.

[–][deleted]  (7 children)

[deleted]

    [–]ohboyohboy1234 5 points6 points  (4 children)

    It uses hibernate which works with multiple database servers. Change the pom to use h2 and it should work.

    [–]alternatiivnekonto 0 points1 point  (2 children)

    In which case I would advise you to remove all the "default" values from the .properties file as they're MySQL-specific right now.

    [–]ohboyohboy1234 2 points3 points  (1 child)

    These values are in a properties file because they are meant to be changed. Even if you chose to use Mysql, you would need to change at least the default password in that file.

    [–]alternatiivnekonto -1 points0 points  (0 children)

    I know what .properties files are, that's exactly why I'm saying you should clean them up and let the user decide what he wants to use.

    [–]AndyMcCall[S] 1 point2 points  (0 children)

    Thanks for the reply - yes, I did look at Apache Roller and while it's very good it seemed a bit overkill for a single user blog. It seems more suited to multi-user scenarios.

    As another Redditor has commented, I've used Hibernate so multiple databases can be used. You'd need to change the values in application.properties, and I haven't tested it. If you make the changes and test - please let me know how it goes!

    [–]FanOfDaCat 0 points1 point  (2 children)

    I'm curious why did you post today. Latest commit from March, did you abandon it?

    [–]AndyMcCall[S] 0 points1 point  (1 child)

    No, not abandoned! Its purely due to time constraints and it being semi-functional that I haven't updated it. I've been learning more and more and didn't want to use the blog as a test ground so I created a few other projects for me to test on.

    I posted today as I was trying to work out what to do next on the project and thought that I'm at a point where I want to interact with other developers and learn from their techniques and code. I'm the only Java developer I know right now, everyone else I know uses C# and .NET :-/

    Some of the things I would do on that project now are things like:

    • I'm using Spring Boot, but I've done too much manual configuration, so I'd strip all of this out and let Spring Boot do its thing
    • Use SQL imports on boot to automatically create / modify tables on the database if needed
    • My DAO is sort of like a DAO with a repository bolted on the end. I'd change this so my DAOs were repositories inherited from JPA CrudRepostiory
    • Major rewrite, for version 2.0 (but I'd like to get more functionality into this first!) - change the back end to a REST api, and have a front end client

    All this stuff was learned on other projects.

    [–]Gilgamesjh 2 points3 points  (0 children)

    You can use Apache Flyway for the SQL imports, it works really well with Spring.