Git Product home page Git Product logo

updatehymnals's Introduction

Update Hymnals

Components

Update Hymnals works together with these other components:

Update hymnals is the service that ensures changes made to the All Hymnals Sheets having the hymnals data is updated to the Hymnals Data repo where it is picked by the Study Hymnal.

Table of Contents

Installation

Requirements

  • nodejs v>=6
  • yarn /npm

Installing Prerequisites

Installing UpdateHymnals

We will presume that you have git installed. If not then grab it!

cd /var/www/html/updatehymnals/
git clone https://github.com/GospelSounders/updatehymnals.git
cd updatehymnals/
yarn install
cd install
cp -r lib/ /
cd ../hymnals-data
git clone https://github.com/GospelSounders/hymnals-data.git .

Change also localhost to the url of your server in the google scripts. The default port(defined in .env.example) is 3002

cd /var/www/html/updatehymnals/resources

./changeurl.sh  http://localhost:3002 your-url:your_port

Then use the import All Hymnals.xlsx from resources to google sheets and create a script with the contents from script.gs

Usage

Enable the service after installation

systemctl daemon-reload
systemctl enable updatehymnals.service
systemctl start updatehymnals.service
  • Goto All Hymnals.xlsx
  • Open the tab of the hymnal to update
  • Click on Update hymnals menu and wait until a msgbox appears
  • Copy link from message box and paste into bin/resources/csvuploads/{HYMNALNAME}.enc
  • remove the part of the url that is equal to https://www.gospelsounders.org/updatehymnals/hymnals/SDAH/
  • sync with server by running (from /path/to/updatehymnals/)
rsync -a bin/csvuploads/ [email protected]:/var/www/html/updatehymnals/bin/csvuploads/
  • Open your browser to https://www.gospelsounders.org/updatehymnals/hymnalsv1/{hymnalname}
  • Go back to sheets and open AllHymnalsSheet and increment fixed for that hymnal and change updated to 1
  • Go to github and merge changes to master

Then just peek in to see if things work fine

journalctl -f -u updatehymnals

Features

  • Automatic updates

Todo

  • Create forms
  • Update from sheets hourly

updatehymnals's People

Contributors

surgbc avatar

Watchers

 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.