Giter Site home page Giter Site logo

wiki's Introduction

Wiki

Wiki is a single-page application for browsing and editing content distributed throughout a federation of similar creative-commons licensed sites. What is a federated wiki, and why does federation matter? Authors thoughout the federation pull content towards themselves as they edit. With this package authors publish their own edits back to the federation as they edit.

Over the past two years, the Smallest Federated Wiki project has explored the concept and implementation details of the federated wiki concept. This code has been extracted from that project, with the goal of releasing a polished, easy to deploy package.

Using Federated Wiki

Learn how to wiki by reading fed.wiki.org

Running your own Server

The quickest way to set up wiki on your local machine is to install it globally with npm:

$ npm install -g wiki
$ wiki

Visit localhost:3000 to see your wiki. If you choose a host visible to the internet then other in the federation can use your work.

Server Options

Options for the server can be passed in many ways:

  • As command line flags
  • As a configuration JSON file specified with --config
  • As a config.json file in the root folder or cwd.
  • As env vars prefixed with wiki_

Higher in the list takes precedence. The server will then try to guess all unspecified options.

You can also switch datastores to leveldb from flatfiles by switching require('./page') to require('./leveldb') in lib/server.js.

Developing Wiki

This package consists of client and server code as well as a number of sample plugins that create special purpose markups that can be used on a paragraph by paragraph basis. Get the code, build the client, and start the server:

$ git clone https://github.com/WardCunningham/wiki.git
$ cd wiki
$ grunt build
$ npm start

While you're coding, you can also watch for files to change. This will rebuild the client each time you save a file.

$ grunt watch

Test the server-side code by running $ grunt test.

Test the client-side code by starting your wiki server with $npm start and opening http://localhost:3000/runtests.html

How to Participate

  • Join the developer IRC channel, #fedwiki on freenode
  • Stop by the Google Hangout at 10am Pacific every Wednesday
  • Submit Issues
  • Fork, commit and submit Pull Requests

License

You may use the Wiki under either the MIT License or the GNU General Public License (GPL) Version 2.

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.