Giter VIP home page Giter VIP logo

lektionarium's Introduction

lektionarium

foo

lektionarium.se

Skapa en kyrkoårskalender för Svenska kyrkans kyrkoår.

Projektet består av flera delar:

Modul Beskrivning
api Grundläggande kod för att räkna ut kalendern och skapa olika utformat
cli Ett enkelt kommandoradsprogram för att skapa kalendrar i ditt skal
web Spring Boot-applikation för att skapa HTTP-kontaktpunkter för att hämta kalenderdata
frontend En React-application för att presentera kalenderdata i en webbläsare.

Större delen av programmet är skrivet i Java. Webbapplikationen är skriven i Groovy och frontend i Javascript.

Ingen databas används utan kalenderdata läses från en XML-fil vid anrop. Då kalenderdata inte ändras cachas data ganska aggressivt.

Bygga Lektionarium

  • Installera en JDK
  • Gå till root-katalogen i projektet
  • Kör ./gradlew build (gradlew.bat på windows)

Starta webbapplikationen vid utveckling

  • Installera en JDK
  • Installera NodeJS
  • I ett terminalfönster, kör ./gradlew web:bootRun
  • I ett annat terminalfönster, gå till katalogen frontend
  • Kör npm start. Ett webbläsarfösnter öppnas med webbapplikationen.

API

Om du vill anropa lektionarium från en annan webbplats, t.ex. för att visa söndagens texter på er webb, kan du anropa API:et från Javascript.

curl https://lektionarium.se/day

Svaret kommer i JSON-format enligt följande:

{
  "day": "Fjärde söndagen efter trefaldighet",
  "date": "2020-07-05",
  "memorials": [],
  "readings": {
    "theme": "Att inte döma",
    "ot": {
      "sweRef": "Hes 18:30-32",
      "enRef": "Ezek. 18:30-32",
      "text": "bibeltext"
    },
    "ep": {
      "sweRef": "Gal 6:1-7",
      "enRef": "Gal. 6:1-7",
      "text": "bibeltext"
    },
    "go": {
      "sweRef": "Luk 6:36-42",
      "enRef": "Luke 6:36-42",
      "text": "bibeltext"
    },
    "ps": {
      "sweRef": "Ps 62:2-9",
      "enRef": "Psa. 62:2-9",
      "text": "bibeltext"
    },
    "alt": null
  }
}

Villkor för användning av källkoden

Copyright (c) 2010, 2020, marvi ab. All rights reserved. Lektionarium is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Lektionarium is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Lektionarium. If not, see https://www.gnu.org/licenses/.

lektionarium's People

Contributors

dependabot[bot] avatar marvi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

marvisnippets

lektionarium's Issues

Not handling Advent/Christmas correctly

Two errors:

  • getNext(LocalDate d) can't handle that Liturgical Year != Calendar Year. After first of Advent we are stuck on "Domssöndagen".

  • It picks the readings from last Liturgical Year during Advent and Christmas (until new year)

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.