Tool to manage a freshmans weekend by GEOFS.
Requires node ^8.x
, yarn
and mysql-server ^5.7
.
git clone https://github.com/SpeckiJ/ErstiWeTool.git
cd ErstiWeTool
yarn install
mysql -u root -p < schema.sql
echo "SET PASSWORD FOR 'ersti-we' = PASSWORD('my pass word here')" | mysql -u root -p
cp config.js.sample config.js
Now open config.js
and configure the application to your likings.
At last, create login credentials for the admin panel (requires htpasswd
from apache-utils):
htpasswd -c ./admin.htpasswd <username>
You now can start the app by running yarn start
.
There are two frontend endpoints:
./
: contains the user facing forms./admin
: contains an adminpanel, requires authentication
# the root pw is set in docker-compose.yml
docker-compose up -d mysql
docker-compose exec mysql bash -c 'mysql --default-character-set=utf8 -p < schema.sql'
docker-compose exec mysql bash -c "echo 'SET PASSWORD FOR \"ersti-we\" = PASSWORD(\"test\")' | mysql -p"
vi init/erstiwetool.service # change installation path
sudo cp init/erstiwetool.service /etc/systemd/system/
sudo systemctl enable erstiwetool
sudo systemctl start erstiwetool
vi init/erstiwetool # change installation path
sudo cp init/erstiwetool /etc/init.d/
sudo update-rc.d erstiwetool defaults 98 02
sudo service erstiwetoolstart
Run bin/anonymizeUsers [year] --yes-for-real
to replace user PII (first name, last name, email, phone) with placeholders. Birthdate is truncated to months.
GPL-3.0