Nsa-observer

Meteor based NSA items database and vizualisation

https://nsa-observer.laquadrature.net

Download as .zip Download as .tar.gz View on GitHub

NSA Observer docs

The basics : how to duplicate the code source (for git beginners).

$ cd your_code_root/repo_name
$ git clone https://github.com/albancrommer/nsa-observer

Crowdsourcing / Collaborating on content

Your access to collaboration depends on the user group you belong to:

Guests
Can read and export the database content
Users
Can propose items modifications to the database
Admins
Can validate proposals, edit items, import database

Guests

No requisites

Exporting the database content

  • http://{host:port}/api/export/json
  • http://{host:port}/export/json
  • http://{host:port}/export/wiki

Users

Requisites

Registering for an account. This is extra simple as for now the registration is open.

Proposing modifications

Once logged in, when you browse items you'll have access to a menu with "View" and "Edit".

Using the Edit mode, the interface shows a wiki based interface for text edition whose syntax is based on classic wiki.

If you want to propose an interesting set of changes, directly type in. Once done click on the "Save" button.

If your proposal has been syntactically validated, you'll be prompted with an acknowledgement message.

At this point, the admin team will be informed of your proposal and will moderate it.

Admin

Requisites

Being tagged as admin directly in the database. Modify the account directly on the command line.

$ meteor mongo
meteor:PRIMARY> db.users.update({"_id" : "{insertUserIdHere}"},{$set:{"isAdmin":1}})
        

Validating and editing items.

As an admin the user interface has more controls: you can see the various proposals (drafts) and versions of an item.

Editing an item requires you to use the wiki syntax, which must be valid to be saved.

Editing a draft or a version, you can see :

  • See a "diff" showing the differences between your item and the draft/version selected
  • See a "raw" version of the draft/version, ie. its wiki formatted version
  • Apply the draft/version, which will validate the user proposal or reverse the item to a previous version.

Importing

  • http://{host:port}/import