Giter Site home page Giter Site logo

tobiasnx / format.gbv.de Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gbv/format.gbv.de

0.0 0.0 0.0 1.13 MB

Formatdatenbank

Home Page: https://format.gbv.de/

License: GNU General Public License v3.0

Shell 3.07% JavaScript 1.16% PHP 70.93% CSS 6.99% Makefile 1.85% HTML 11.80% jq 4.21%

format.gbv.de's Introduction

GBV-Formatdatenbank

Build Status Quality Score

Dieses Repository enthält den Quellcode und die Quelldaten der unter https://format.gbv.de/ zugänglichen Formatdatenbank.

Systemanforderungen

Erfordert mindestens PHP 7.4 mit Erweiterungen u.A. für XML.

$ sudo apt-get install php-xml php-mbstring php-curl

Weitere verwendeten PHP-Module werden mit Composer installiert:

$ composer install

Die Avram-Spezifikation und das dazu gehörige JSON Schema werden in einem eigenen repository verwaltet, dass bei der Installation automatisch neu geklont wird.

Quellcode

https://github.com/gbv/format.gbv.de

Zum Testen kann ein eigener Webserver erreichbar unter http://localhost:8021/ gestartet werden - allerdings funktioniert dabei die Auslieferung von Schema-Dateien nicht vollständig:

$ composer web

Installation

Create a user formatdb and check out the repository

$ sudo adduser formatdb --disabled-password --home /srv/formatdb
$ sudo -iu formatdb
$ git clone --bare https://github.com/gbv/format.gbv.de.git .git
$ git init; git checkout
$ composer install

Die Anwendung läuft mittels nginx und PHP-FPM. Zur Installation sind im Zweifellsfall beide zu Installieren und zu konfigurieren:

$ sudo apt-get install nginx php-fpm
$ sudo cp /srv/formatdb/format.gbv.de /etc/nginx/sites-enabled/format.gbv.de # ggf. anpassen
$ sudo service nginx restart

Development

Zur Sicherstellung, dass neue Einträge valide sind, muss zuminest

$ composer build

aufgerufen werden. Um zusätzlich den PHP-Quellcode zu testen:

$ composer test

Um nur den Coding-Style zu validieren:

$ composer style

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.