Size: 1905
Comment:
|
← Revision 9 as of 2008-07-06 21:33:40 ⇥
Size: 1860
Comment: Migrated to Confluence 4.0
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
#pragma page-filename DEV/versions/14352675 | #pragma page-filename DEV/versions/4816959 |
Line 4: | Line 4: |
The code is at [[https://code.launchpad.net/~mk2s/mailman/restserver]] | The code is at [[https://code.launchpad.net/~mk2s/mailman/restserver|https://code.launchpad.net/~mk2s/mailman/restserver]] |
Line 6: | Line 7: |
The following is on a clean install of FC9. If not on FC9 then most of this will probably be the same; you may need to figure out where easy_install comes from. | The following is on a clean install of FC9. If not on FC9 then most of this will probably be the same; you may need to figure out where easy_install comes from. |
Line 15: | Line 16: |
as myself installed(these packages could be installed by root, if installing as yourself see this [[http://peak.telecommunity.com/DevCenter/EasyInstall#administrator-installation]]) | |
Line 17: | Line 17: |
* Routes using easy_insatll Routes | as myself installed(these packages could be installed by root, if installing as yourself see this [[http://peak.telecommunity.com/DevCenter/EasyInstall#administrator-installation|http://peak.telecommunity.com/DevCenter/EasyInstall#administrator-installation]]) * Routes using easy_insatll Routes |
Line 20: | Line 22: |
\# checkout source | |
Line 22: | Line 23: |
<<Verbatim([)>>mk2s@fc9 ~<<Verbatim(])>>$ bzr checkout [[https://code.launchpad.net/~mk2s/mailman/restserver]] <<Verbatim([)>>mk2s@fc9 ~<<Verbatim(])>>$ cd restserver <<BR>> |
# checkout source [mk2s@fc9 ~]$ bzr checkout [[https://code.launchpad.net/~mk2s/mailman/restserver|https://code.launchpad.net/~mk2s/mailman/restserver]]<<BR>> [mk2s@fc9 ~]$ cd restserver <<BR>> |
Line 27: | Line 29: |
<<Verbatim([)>>mk2s@fc9 \,,/restserver<<Verbatim(])>>$ mkdir \,,/mailman-runtime | [mk2s@fc9 ~/restserver]$ mkdir ~/mailman-runtime |
Line 29: | Line 31: |
<<Verbatim([)>>mk2s@fc9 ~/restserver<<Verbatim(])>>$ ./configure \--(-with-username=$USER \)----(with-groupname=$USER \)----(prefix=$HOME/mailman-runtime \)---without-permcheck | [mk2s@fc9 ~/restserver]$ ./configure --with-username=$USER --with-groupname=$USER --prefix=$HOME/mailman-runtime --without-permcheck |
Line 31: | Line 33: |
<<Verbatim([)>>mk2s@fc9 ~/restserver<<Verbatim(])>>$ make install | [mk2s@fc9 ~/restserver]$ make install |
Line 33: | Line 35: |
\# once the build and install is complete | # once the build and install is complete |
Line 35: | Line 37: |
<<Verbatim([)>>mk2s@fc9 ~/restserver<<Verbatim(])>>$ cd $HOME/mailman-runtime | [mk2s@fc9 ~/restserver]$ cd $HOME/mailman-runtime |
Line 37: | Line 39: |
\# start the rest server | # start the rest server |
Line 39: | Line 41: |
<<Verbatim([)>>mk2s@fc9 ~/mailman-runtime<<Verbatim(])>>$ PYTHONPATH=. python Mailman/rest/server.py | [mk2s@fc9 ~/mailman-runtime]$ PYTHONPATH=. python Mailman/rest/server.py |
Line 41: | Line 43: |
\# from a different shell make a request | # from a different shell make a request |
Line 43: | Line 45: |
<<Verbatim([)>>mk2s@fc9 ~<<Verbatim(])>>$ lynx [[http://localhost:8000/]] | [mk2s@fc9 ~]$ lynx [[http://localhost:8000/|http://localhost:8000/]] |
Line 45: | Line 47: |
and so on \\ |
and so on <<BR>> |
This page describes how to get started trying the RESTful webservice server for mailman.
The code is at https://code.launchpad.net/~mk2s/mailman/restserver
The following is on a clean install of FC9. If not on FC9 then most of this will probably be the same; you may need to figure out where easy_install comes from.
Python 2.5.1 and Postfix already installed
setuptools was also already installed as rpm python-setuptools-0.6c8-1.fc9.noarch but I needed to install pyhon-setuptools-devel
as root I installed
- bzr (not bazaar)
as myself installed(these packages could be installed by root, if installing as yourself see this http://peak.telecommunity.com/DevCenter/EasyInstall#administrator-installation)
- Routes using easy_insatll Routes
- simplejson using easy_install simplejson
- Mako templates using easy_install Mako
# checkout source
[mk2s@fc9 ~]$ bzr checkout https://code.launchpad.net/~mk2s/mailman/restserver
[mk2s@fc9 ~]$ cd restserver
Then as myself(mk2s) I ran configure and make
[mk2s@fc9 ~/restserver]$ mkdir ~/mailman-runtime
[mk2s@fc9 ~/restserver]$ ./configure --with-username=$USER --with-groupname=$USER --prefix=$HOME/mailman-runtime --without-permcheck
[mk2s@fc9 ~/restserver]$ make install
# once the build and install is complete
[mk2s@fc9 ~/restserver]$ cd $HOME/mailman-runtime
# start the rest server
[mk2s@fc9 ~/mailman-runtime]$ PYTHONPATH=. python Mailman/rest/server.py
# from a different shell make a request
[mk2s@fc9 ~]$ lynx http://localhost:8000/
and so on