Giter VIP home page Giter VIP logo

mediawiki-extensions-manolito's Introduction

mediawiki-extensions-Manolito

An example MediaWiki extension in connection with the "Manolito Future Day 2022".

Work Packages

UNDERSTAND: "Ubuntu 22.04" VirtualBox Virtual Machine

  • VBox: start, stop, port forwarding
  • VM: Bash | (ssh)

UNDERSTAND: manolitoWiki Docker stack

  • Components: web server, database
  • docker-compose: up, down
  • docker: ps, logs, exec

UNDERSTAND: manolitoWiki

  • LocalSettings.php (purpose)
    • wfLoadExtension("Manolito");
  • Microsoft Visual Code

  • tree, git status|pull|push

    CODE: PHP (backend, server-side, e.g. Apache)

      /home/manolito/manolitoWiki/extensions/Manolito/src/Hooks.php
          Functionality: parser function call
      /home/manolito/manolitoWiki/extensions/Manolito/includes/specials/SpecialManolito.php
          Functionality: add special function to MediaWiki
      /home/manolito/manolitoWiki/extensions/Manolito/src/TextAccounting.php
          Functionality: implement parser function
      /home/manolito/manolitoWiki/extensions/Manolito/tests/phpunit/unit/ManolitoTest.php
    
    • Install dependencies

      # On your machine running Docker
      manolito@manolito:~$ sudo docker exec -it manolitowiki_web_1 /bin/bash
      # Inside the Docker container at /var/www/mediawiki/w/
      composer install
    • Run tests

      # Inside the Docker container at /var/www/mediawiki/w/
      php tests/phpunit/phpunit.php extensions/Manolito/tests/phpunit/unit/ManolitoTest.php

    CODE: Javascript and CSS (frontend, client-side, e.g. Firefox browser)

      /home/manolito/manolitoWiki/extensions/Manolito/resources/ext.manolito/manolito.js
          Functionality: write text into HTML element
      /home/manolito/manolitoWiki/extensions/Manolito/resources/ext.manolito/manolito.css
          Functionality: style/design user interface elements
    

    https://www.cypress.io

      /home/manolito/manolitoWiki/extensions/Manolito/cypress/e2e/spec.cy.js
    

mediawiki-extensions-manolito's People

Contributors

lexsulzer avatar

Watchers

 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.