-
mongodb server
-
node and npm
-
gulp and bower install globally
-
PORT
Default3000
. -
SAVED_FILES_DIR
Default'../../'
. -
MONGO_URL
Default'mongodb://localhost:27017/gentreeDb'
. -
EMAIL_SETTINGS_JSON_PATH
Defaultserver/lib/email/emailSenderSettings.json'
. Example for the file contents can be found in the default path. For transport and settings options see http://www.nodemailer.com/ and the config for smtp transport and well-known services. -
EMAIL_BODY_TPL_PATH
Defaultserver/lib/email/emailTpl.html'
Example for the file contents can be found in the default path. Two variables are available for embedding${code}
and${baseUrl}
Deploy the code using git clone/pull/fetch and then install client and server dependencies
git clone https://danikenan.unfuddle.com/git/danikenan_beithatfutsot code
cd code
npm install
bower install
To start local server for dev purposes, run gulp
and open your browser at http://localhost:3000
.
To compile and deploy client code into server public dir run run gulp rebuild-client
.
The server main file is server.js
.
There is a python that sends a summary zip wihich include the gedcom of all the
added trees and a summary report. To use the tool you need to install python
enviornment and hav a /etc/bhs/config.yml
file with the following fields:
mail_server
, mail_port
, mail_username
, mail_password
$ virtualenv env
$ . env/bin/activate
$ pip install -r requirments.txt
$ python send-trees.py -h
usage: send-trees.py [-h] [-t TO] [-s SINCE] [-u UNTIL] [-d DBNAME] [-e EMAIL]
optional arguments:
-h, --help show this help message and exit
-t TO, --to TO
-s SINCE, --since SINCE
-u UNTIL, --until UNTIL
-d DBNAME, --dbname DBNAME
-e EMAIL, --email EMAIL