appmini / clerk Goto Github PK
View Code? Open in Web Editor NEWSelf-hosted habit tracker and event logging web app.
License: GNU General Public License v3.0
Self-hosted habit tracker and event logging web app.
License: GNU General Public License v3.0
I'm trying to get Clerk up and running in a simple Docker container for fun:
I've cloned the repo locally and I'm using this in a Dockerfile:
FROM php:7.4-apache
# Add the project to /var/www/html
ADD www /var/www/html
# Sym link
RUN rm /var/www/html/server/index.php
RUN ln -s /var/www/html/server/mal.php /var/www/html/server/index.php
However, when building and running, I get the error message in the webUI:
"Error connecting to the server."
When I look at /server/index.php
on the server I get the error:
Fatal error: Cannot declare class Error, because the name is already in use in /var/www/html/server/mal.php on line 46
So I tried to rename "Error" on line 46 to be, "Err" and then everything that relates to it. That fixes the issue and I don't get the error message anymore and the web UI loads, but then when I add a event to log, nothing is actually saved (which sounds like a different issue).
Is there something with newer-ish versions of PHP (7.4 in this case) and "Error" in the code on line 46? (I'm not super down with PHP, will need to investigate.)
Unfortunately, I do not get the installation to work - Main page shows error:
clerk\src\main.wisp
Line 247: (m.render app-el (m "div" {:id "loader-error"} "Error connecting to the server."))))
It looks like a Lisp or Scheme variation, but attempts to search for it are not particularly helpful.
The mal.php symlink is confusing as per #10
Hi !
So I tried to deploy Clerk on my website, but I couldn't seem to find my way. I have the same issue as #10 (I get the error message "Error connecting the server"). Reading #10 , I noticed the symlink index.php toward mal.php was indeed missing, so I added it. However, this is still not working : trying to load index.php yields Error 500 and loading index.html still yields the message "Error connecting the server".
Do you know where I did something wrong ?
Thank you !
With a clean installation running PHP 7, you'll get a PHP Fatal error: Cannot declare class Error, because the name is already in use in /var/www/site-name/server/mal.php on line 0
I think we'd just have to rename the Error class in mal.php to something like _Error. I'll submit a pull request if that's the case.
Instead of downloading a csv file upon tapping an event name, we could have it expand a list of the recorded logs for that event. The csv file could be downloaded by tapping an appropriate icon beside the event name.
This might be a simple enough feature for me to learn a little wisp with.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.