/
getting-started-with-mantissa.txt
27 lines (27 loc) · 1.77 KB
/
getting-started-with-mantissa.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
= Getting Started With Mantissa =
Here I will describe how to write a simple Mantissa app.
== Get Mantissa and Dependencies ==
* Install Zope Interfaces and Twisted if you have not already done so.
* Setup Mantissa - You don't need to *install* the Divmod infrastructure you just need to make sure that all the modules are on your python path. The simplest way to set everything up for development is to use Combinator, which will download everything and setup your PATH and PYTHONPATH. See [wiki:DivmodCombinator/Examples/QuickStart Combinator Quickstart] then switch to the trunk branch.
* Test - If you have set everything up correctly you should now be able to run the following commands and see similar output
{{{
#!sh
richard@lazar:/tmp$ axiomatic -d test.axiom mantissa
Password:
Confirm:
richard@lazar:/tmp$ axiomatic -d test.axiom start -n
2005/11/04 12:59 GMT [-] Log opened.
2005/11/04 12:59 GMT [-] twistd SVN-Trunk (/usr/bin/python 2.4.2) starting up
2005/11/04 12:59 GMT [-] reactor class: twisted.internet.selectreactor.SelectReactor
2005/11/04 12:59 GMT [-] xmantissa.website.AxiomSite starting on 8080
2005/11/04 12:59 GMT [-] Starting factory <xmantissa.website.AxiomSite instance at 0xb6f75e2c>
}}}
Now visit http://localhost:8080/
== Create Project Structure ==
* ./KBase/kbase
* ./KBase/axiom/plugins/kb.axiomaticcmd.py
* ./KBase/xmantissa/plugins/kb.theme.py
== Axiomatic Application Commander ==
Before we can start writing our app, we need a way of installing it into an axiom database, so first lets look at the axiomatic command plugin.
* [http://twistedmatrix.com/projects/core/documentation/howto/options.html usage.Options]: Might be worth reading before continuing
* [http://deadbeefbabe.org/paste/2040 A skeleton axiomatic command for installing an INavigableElement]