Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better documentation for selfhosting #21

Open
Bearsaerker opened this issue Apr 24, 2023 · 6 comments
Open

Better documentation for selfhosting #21

Bearsaerker opened this issue Apr 24, 2023 · 6 comments
Assignees

Comments

@Bearsaerker
Copy link

I love your webapplication so far. I played a little bit around with your webversion and it works like a charm. I wanted to use it in our next meet where we unfortunately don't have any internetconnection whatsoever. I wanted to host this site myself through a raspberry pi and a mobile router but I don't get it to work by myself. I can access the index.php, its hosted via apache but I can't connect it to a database. I don't exactly have enough knowledge to know how to proceed or what even went wrong. But I think a rough documentation of how to set up a database would be enough. Love your effort so far!

@meethed
Copy link
Owner

meethed commented Apr 24, 2023

ahhh yes!! mine was hosted on a raspberry pi, it's more than capable of keeping up. i have no idea how to describe the database setup for you, but give me a few hours and i'll get something together.

i originally had a standalone version of simpleLifter that you could just download and run on a local computer, and have it all save to the local storage and to a local file. it'll be impossible to do the referee lights with that version as they can't all talk to the computer (unless over bluetooth or some other thing that i haven't done), but if you just want a 1 minute attempt timer, a 1 minute 'next attempt' timer, that could be knocked up in a matter of minutes.

what would you prefer? database setup so you can clone it on your own raspberry pi, or a standalone version of simpleLifter without the lights and overlay connectivity?

@Bearsaerker
Copy link
Author

Thank you for your fast reply. I'd need the referee lights running locally. So this would be the version I'd prefer :D but I don't want to pressure you! Take your time :)

@meethed
Copy link
Owner

meethed commented Apr 24, 2023

mate have a look at the new database.md file i created for you. it has the "comps" table description laid out in a format that makes sense. Sorry it's so messy... you'll have to learn a thing or two about setting up mysql (i used mariadb on my PI, i think that's what comes default?) and getting it to talk to PHP but it should be pretty easy... i mean i have NFI what i'm doing and i worked it out!!

i've also updated all of the php files so they all use ".../config.php" which means once your database is set up you just need to make that file which establishes the $conn connection to your DB and you should be GTG

@meethed meethed self-assigned this Apr 24, 2023
@Bearsaerker
Copy link
Author

Thanks for the new description. Is the php file already there or do I have to write one by myself?

@meethed
Copy link
Owner

meethed commented Apr 25, 2023

ahh you gotta make your own, it doesn't belong in the web root (/var/www/html) it goes in /var/www, and because it has the database password in plain text it can't be accessible by outsiders. the database.md file should have everything you need to make one

@Bearsaerker
Copy link
Author

Thanks for your help, I got it to work (The lights at least). If you want to I can write a complete noob documentation of what I've done with all steps so that others can profit from it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants