this post was submitted on 08 Apr 2024
257 points (98.5% liked)

Selfhosted

39435 readers
8 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hi! For the ones of you that use Trello, I made a simple to use and host alternative in PHP. It's not a complete alternative like other projects, and I mainly made it to be able to host it on free PHP web servers while having control over data/attachments. It also support a basic importer for Trello JSON exports.

I'm hosting a test instance here, you can make an account to try it out (no email required):

https://trytarallo.altervista.org/

And the repository with other instructions is here:

https://github.com/michelematteini/tarallo

top 28 comments
sorted by: hot top controversial new old
[–] [email protected] 27 points 7 months ago (1 children)

Wow code with actual comments???!!!! Amazing!

[–] [email protected] 15 points 7 months ago (1 children)

...and I didn't even minimize them on the test instance, so that people will feel their weight while the page load :D

[–] [email protected] 2 points 7 months ago (1 children)

Is there a docker version or a chance of one in the future?

[–] [email protected] 11 points 7 months ago (2 children)

I know it's kinda expected in these project... Let's say that if no one contributes it, I'll have to look up how to set it up, since I'm not really a web dev. But yeah it's gonna be there.

[–] [email protected] 12 points 7 months ago* (last edited 7 months ago) (1 children)

A basic image is really easy. It's basically just

Dockerfile

FROM debian  # start with a minimal Linux system. There are probably better options than debian. Some images are made especially for docker (i.e. very minimal and light weight). 
RUN apt install dependencies  # do what ever you need to get your app running. 
RUN echo "options and stuff" >> /etc/a/config/file  # you can also edit system files
COPY . /app  # copy your project into the docker container.
EXPOSE 8080  # doesn't actually do anything, but documents where the app will be listening
CMD server-binary run /app/main.php  # I have actually no idea how php server stuff works

(Docs https://docs.docker.com/reference/dockerfile/)

Then people can run your project with docker.

Edit: checking the readme some small changes would be required. Config.php should read in environment variables and the DB init SQL should be run automatically somehow.

[–] [email protected] 1 points 7 months ago* (last edited 7 months ago)

Edit: checking the readme some small changes would be required. Config.php should read in environment variables and the DB init SQL should be run automatically somehow.

I'll probably start with making these changes to make it compatible, thanks!

[–] [email protected] 2 points 7 months ago

I was looking for something like this a little while ago but couldn't find anything and this looks perfect. My server is mostly docker only so I might try to figure it out.

[–] [email protected] 11 points 7 months ago

The screenshots look nice !

[–] [email protected] 7 points 7 months ago

I spent just a few minutes with it and I like it a lot. I swear it's more responsive than actual trello! :D

[–] [email protected] 7 points 7 months ago (1 children)

I love you're stack! PHP and vanilla JS 🤩 It's so KISS!

I like that I can install it on my o2switch server.

[–] [email protected] 1 points 7 months ago* (last edited 7 months ago)

It is, but also it's worrisome since it means support is harder, which means risk of abandonment is higher and community contributions lower. Which means "buying in" is riskier for the time investment.

Not really criticizing, 10/10 points on making something and then putting it out there, nothing wrong with that. Just being a user who's seen too many projects become stale or abandoned, and have noticed that the trend has some correlation to the technology choices those projects made.

[–] [email protected] 4 points 7 months ago

Actually a pretty cool project. Its smooth and works exactly how i would expect. Hopefully some companies use it and contribute money or code so you can keep improving it.

[–] [email protected] 3 points 7 months ago

This looks great, I don't suppose you plan on a pre-made docker container?

[–] [email protected] 2 points 7 months ago

Ive been looking for something like this for a while. Ill need to try it out

[–] lolcabanon 2 points 7 months ago

Hey! I see lot of people here hating on PHP, but I totally get what is you goal here and I love it!

I don't really like PHP myself, but I absolutely love that I can litteraly spin up a LAMP stack OSS in like 15 minutes on a shared hosting if it's mostly "copy files, edit config.php, init db, done".

Some modern setup which are required to run on VPS that are supposedly easier since they run in docker are just so cumbersome to install... Like you need 6 api keys for 3 different cloud services and 12 containers configured in a docker-compose.yml just to try a local instance...

[–] [email protected] 1 points 7 months ago* (last edited 7 months ago) (1 children)

The app seems great. @[email protected] I'm getting an error when trying to create the DB tables: Reason: SQL Error [1273] [HY000]: (conn=517001) Unknown collation: 'utf8mb4_0900_ai_ci'

Does it support MariaDB 10.6.17?

[–] [email protected] 3 points 7 months ago (2 children)

That is the character set and collation that should be used, and your DB probably don't support it. You can try by leaving the default by removing "CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci" inside init_db.sql, anywhere you find it.

[–] [email protected] 1 points 7 months ago

I created a DB with utf8mb4 with the general_ci collection, but the issue remains. I'll try to change the SQL script

[–] [email protected] 1 points 7 months ago* (last edited 7 months ago) (1 children)

To make it work, I had to remove some things from the script, which didn't work for me:

  1. START TRANSACTION;
  2. SET time_zone = "+00:00";
  3. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  4. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  5. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  6. /*!40101 SET NAMES utf8mb4 */;
  7. CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci (like you suggested)
  8. COMMIT; (In Alter Tables, since as far as I remember, DDL commands don't need to commit, only the DML ones. So I did the commit manually)

If I need to remove the registration, do I have to update the Value column on tarallo_settings table or are there any settings' menu which I'm not seeing?

[–] [email protected] 2 points 7 months ago

No there aren't just disable it from tarallo_settings!

[–] [email protected] 1 points 7 months ago

I like it but UI/UX could be better

[–] [email protected] 1 points 7 months ago

This was a missed opportunity of calling it in honor of Lino Banfi: Tarello

[–] [email protected] 1 points 7 months ago

It's Time for activity pub integration :)

[–] [email protected] -2 points 7 months ago (1 children)

Imagine starting project in PHP in 2024

[–] [email protected] 13 points 7 months ago (1 children)

I write PHP on the daily and don't understand the hate it gets :/

At least I can work on Linux at home while my co-workers are stuck on Windows with their C#

[–] [email protected] 4 points 7 months ago* (last edited 7 months ago) (1 children)

It's been nearly 10 years since you needed to develop with C# on Windows.

New versions of .NET have been cross platform with a free IDE since 2016.

[–] [email protected] 2 points 7 months ago

Legacy software still requires maintenance.
Legacy dependencies still require to be used in new projects.
Dual booting multiple times a day is not feasible.

For those reasons none of my co-workers can fully switch to Linux.

[–] [email protected] -2 points 7 months ago

in PHP

😥