Git Product home page Git Product logo

beit-hatfutsot-gentrees-app's Introduction

Pre-requisites

  • mongodb server

  • node and npm

  • gulp and bower install globally

Server env variables

  • PORT Default 3000.

  • SAVED_FILES_DIR Default '../../'.

  • MONGO_URL Default 'mongodb://localhost:27017/gentreeDb'.

  • EMAIL_SETTINGS_JSON_PATH Default server/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 Default server/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}

Deployment and build

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.

Weekly Emails

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

beit-hatfutsot-gentrees-app's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.