Skip to content
Scientia edited this page Mar 28, 2022 · 25 revisions

Welcome to the wiki-reader wiki!

This project is a web app that serves article content on MediaWiki-based wikis to clients via MediaWiki's Action API. Main codebase is written in vanilla JavaScript.

Table of Contents

Architecture

The solution is modeled after MEAN:

The file directory is organized like so (see docs for more details):
  • .nuxt - main codebase, contains business logic for handling client interactions; auto-generated from `nuxt dev` or `nuxt build`
  • components - Vue.js components
  • dist - distribution directory for production ready HTML, assets, and scripts
  • node_modules - dependencies
  • pages - views and routes for web pages
  • static - static assets for web pages
  • store - Vuex Store files to manage app state
  • test - unit tests, should test each Vue component

Development

Personally, I am developing on Windows 10 + WSL 2 (Ubuntu) using VSCode as my code editor, but you should be able to build and develop the app on native Unix platforms too. For guides on how to set up my workflow:

Suggested VSCode extensions:

Deployment

Nuxt.js apps can be deployed as static websites or hosted on web servers.

See https://nuxtjs.org/deployments/github-pages for an example of static site hosting and https://nuxtjs.org/deployments/google-appengine for an example of deploying to the cloud.

Further Reading

Clone this wiki locally