Go to file
Theenoro 4b810f3828 Merge branch '2-gruppenmodus-bilder-2' into 'master'
gruppenmodus fix

Closes #2

See merge request theenoro/random-user!4
2019-08-26 20:13:51 +02:00
bash_scripts 0.1.5 2019-06-09 02:36:32 +02:00
public v1.6 - added group mode 2019-06-28 02:34:39 +02:00
src gruppenmodus fix 2019-08-26 20:13:10 +02:00
src_less gruppenmodus fix 2019-08-26 20:13:10 +02:00
test 0.1.5 2019-06-09 02:36:32 +02:00
.gitignore 0.1.5 2019-06-09 02:40:24 +02:00
.gitlab-ci.yml 0.1.5 2019-06-09 02:40:24 +02:00
README.md fixed class name value 2019-08-17 16:01:48 +02:00
o.gitlab-ci.yml 0.1.5 2019-06-09 02:36:32 +02:00
package-lock.json fixed class name value 2019-08-17 15:44:34 +02:00
package.json 0.1.5 2019-06-09 02:36:32 +02:00

README.md

Random user

Online preview: http://theenoro.the-co.de/random-user/

Download

Build yourself

NodeJS: https://nodejs.org/en/

git clone https://gitlab.thee.moe/theenoro/random-user.git
cd random-user
npm install 
npm install -g less
npm run build --prod 
cp public/index.html public/404.html 
mv public _public 
mv build public
lessc src_less/main.less build/main.css
mv public build

Latest Artifact

witout building - just download and put into webfolder. https://gitlab.thee.moe/theenoro/random-user/-/jobs/artifacts/master/download?job=pages

Usage

Get it running

Just use a simple webserver, if you want to use the rescan.php then you need php-cli or something like apache/nginx with the php module.

Create new Classes / Usergroups w/o rescan.php

  1. create in public/data/class a new folder for a new group of users
  2. modify the classes.json in public/data/class and add in the array your ne folder name
  3. create in your new folder a file with the name 'user.json' and a structure like
{"user":[
        ["<file_name(w/o filetype)>","<filetype>"],
        ["test","jpg"]
    ]
}

Create new Classes / Usergroups w/ rescan.php

  1. (for the web rescan)go to public/ and run chown -R www-data:www-data class that the user www-data owns the folder and can write files.
  2. create in public/data/class a new folder for a new group of users
  3. run in the public folder php ./rescan.php, it will generate the classes.json and all user.json files for you. Or get on your website https://yourdoma.in/rescan.php