New node form for Freifunk
Find a file
2015-11-21 11:22:45 +01:00
app Added icon to the dialog. 2014-09-08 21:49:54 +02:00
assets Compleded README and added needed scripts to assets 2015-11-21 11:22:45 +01:00
bin Binary for fixing filenames. 2014-05-30 19:58:07 +02:00
server Updated NPM packages. 2014-08-10 22:28:30 +02:00
shared/validation Fix: Validation of email addresses now case insensitive. 2014-12-31 13:46:10 +01:00
.bowerrc Initial commit. 2014-05-12 20:08:19 +02:00
.editorconfig Fixed editor config. 2014-05-30 19:28:58 +02:00
.gitattributes Initial commit. 2014-05-12 20:08:19 +02:00
.gitignore Compleded README and added needed scripts to assets 2015-11-21 11:22:45 +01:00
.jshintrc Initial commit. 2014-05-12 20:08:19 +02:00
bower.json Bower modules updated. 2014-08-10 22:28:30 +02:00
config.json.example Example config. 2014-08-10 22:28:30 +02:00
Gruntfile.js Enable jshint for server and shared files. 2014-06-06 22:00:36 +02:00
LICENSE Added license. 2014-05-12 20:56:48 +02:00
package.json Updated NPM packages. 2014-08-10 22:28:30 +02:00
README.md Compleded README and added needed scripts to assets 2015-11-21 11:22:45 +01:00

##### dependencies developer-mashine sudo aptitude install npm nodejs-legacy ruby-dev npm install sudo npm install -g grunt-cli bower sudo gem install compass

##### dependencies server sudo aptitude install npm nodejs-legacy

##### where applicable bower prune bower install

##### generate the dist folder grunt

##### on the server the form should run as user fastdform useradd -m -U fastdform cp -a dist/ /home/fastdform/ffffng chown fastdform:fastdform -Rf /home/fastdform/ffffng/ sudo su - fastdform cd ~/ffffng npm install cd ~ vim config.json cd ffffng/ ln -s ../config.json cd ~ mkdir keys mkdir bin cp ~/ffffng/assest/autoupdate.sh ~/bin/ chmod +x ~/bin/autoupdate.sh

##### Keys repository mkdir /home/fastdform/keys cd /home/fastdform/keys git init git config user.email "formular@gothamcity.freifunk.net" git config user.name "Knotenformular"

##### add this to your users crontab

crontab -e

    */1 * * * * sleep 20 && /home/fastdform/bin/autoupdate.sh > /dev/null 2>&1
    */1 * * * * /home/fastdform/ffffng/bin/fix_key_file_names.py /home/fastdform/keys > /dev/null 2>&1

##### create the init script to start the form as deamon su - cp /home/fastdform/ffffng/assets/init.d.fastdform /etc/init.d/fastdform update-rc.d fastdform defaults service fastdform start

##### start the server on http://localhost:8080/ node server/main.js

##### example apache config cat > /etc/apache2/sites-available/formular.conf <<EOF <VirtualHost *:80> ServerName formular.localhost

    ProxyRequests Off
    ProxyVia Off
    
    ProxyPass / http://127.0.0.1:8080/
    ProxyPassReverse / http://127.0.0.1:8080/
</VirtualHost>
EOF

cd /etc/apache2/sites-enabled
ln -s ../sites-available/formular.conf 002-formular.conf

apache2ctl restart