Skip to content

rfugger/ripplesite

Repository files navigation

RippleSite version 0.2 README 
----------------------------- 

by Ryan Fugger
ryan@ripplepay.com 
http://ripple.sourceforge.net/

License 
------- 

The RippleSite software package, including source code, HTML templates, 
documentation, artwork, and all other included files, is covered by the 
GNU General Public License, a copy of which can be found in LICENSE.txt 
in the same directory as this README.  

-- 
RippleSite Standalone Ripple Web Service Software
Copyright (C) 2006-07

This program is free software; you can redistribute it and/or modify it 
under the terms of the GNU General Public License as published by the 
Free Software Foundation; either version 2 of the License, or (at your 
option) any later version.

This program is distributed in the hope that it will be useful, but 
WITHOUT ANY WARRANTY; without even the implied warranty of 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 
Public License for more details.

You should have received a copy of the GNU General Public License along 
with this program; if not, write to the Free Software Foundation, Inc., 
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
--

Description 
----------- 

RippleSite is an open source version of the server software used to run 
RipplePay.com, a free web service for hosting Ripple payment networks on 
a single server. (For more information about the Ripple payment concept, 
see http://ripple.sourceforge.net/.) To get RippleSite running on your 
web server, you need a fair amount of Python, Apache, and PostgreSQL 
know-how. 

The Django project website has a terrific tutorial that anyone 
who intends to work on RippleSite as a developer should go through. 

Installation 
------------ 

RippleSite 0.3 works on the head version of the Django Python web application framework.
You need to check this out of subversion and install as described at 

  http://www.djangoproject.com/download/  

RippleSite requires the following software: 

* root acces on some unix computer. I use ubuntu, on a $20/month rented virtual host from linode.com
  it may be possible to get ripple to work on a shared hosting provider such as dreamhost
  where you don't have root access, but likely to be extremely difficult and not worth the effort.
* Python (I'm using 2.4) 
* Python modules
    -- django, head (I installed via svn co http://code.djangoproject.com/svn)
    -- psycopg (I installed via apt-get install python-psycopg)

* Apache + mod_python (I'm using Apache 2.0), 
  It is recommended to run the django development server to try it out first, as this is easier than apache setup
  on ubuntu, apt-get install apache2 libapache2-mod-python

* PostgreSQL (tested on 8.0, 8.1, 8.2)
    I installed via apt-get install postgresql
* an smtp mail server for sending signup confirmations.
  I am using gmail for this, with the settings in settings.py.


0. Basic preparation
   Check out the source code containing this readme file.
   Install python, django head from svn, postgresql, smtp server (which can just be a gmail account)

  On a debian/ubuntu box,

  sudo apt-get install python postgres python-psycopg 

1. Edit settings.py for passwords, domain names, etc unique to your instance of ripple

2. Create the ripplesite postgres database, and a postgres user that matches your system user

  run ./postgres-setup.py 

  This assumes postgres superuser is named postgres, as is standard, and you have sudo installed,
  and have the right to run commands as a superuser via sudo.
       
  run 'python manage.py syncdb'   # initialize the ripplesite database. 

    create a django app superuser/password as the questions direct you to.

4. Configure Apache.

    Note: This may need some fixing after switching to django head and making the setup somewhat simpler.
    I am currently doing dev running the django server and haven't actually tried running off apache yet.
    (Thomas Hartman) 

    You can skip this if you only want to run the django development server.
    The django development server should be fine unless you have a lot of users.

    Put something like the following in httpd.conf: 

    -- 
    <Location "/"> 
      SetHandler python-program 
      PythonHandler django.core.handlers.modpython 
      SetEnv DJANGO_SETTINGS_MODULE ripplesite.settings
      PythonPath "['/path/to/parent'] + sys.path" 
      PythonDebug Off 
    </Location> 

    <Location "/media/">
      SetHandler None 
    </Location> 
    -- 

    * /path/to/parent is the path to the parent directory of the
    ripplesite project directory

    You must also create a symbolic link to the admin media files from 
    within your Apache document root. There is more information on how to 
    configure Apache for Django + mod_python at:

    http://www.djangoproject.com/documentation/modpython/

4.5 Instructions for running the django development server

  run ./run-server.sh

5. Browse to

     http://mywebhost.com/admin/ (apache)
     or http://mywebhost.com:8080/admin (django dev server)


   log into the Django admin app using the password you created during the syncdb step earlier.
   Click on Currency units and create 
   the currency units you'd like your users to be able to choose on your 
   site. If you'd like to use US dollars, for example, create a currency 
   unit with short name 'USD', long name 'US Dollar', symbol '$', and value 
   1.0. You can always create more later, but you'll need at least one to 
   start with. 

   If you have multiple units that you want Ripple to be able to 
   automatically convert between, set their relative values in the value 
   fields. For example, if you had US dollars set to a value of 1.0, 
   Canadian dollars would be set to around 0.90 because one dollar Canadian 
   is currently worth about 90 cents US. (I've included the script 
   getrates.py in the scripts directory which will fetch current exchange 
   rates from Yahoo and output SQL statements for updating the database -- 
   that should be a decent starting point for piecing together an 
   auto-update system.) 

6. Browse to the root on your site and create a new user. Send out some 
invitations to people you know... 

  htpp://mywebhost.com (apache)
  http://mywebhost.com:8080 (django dev server)

7. You can customize your home page by modifying the file 
ripple/templates/home.html. 

8. You may want to set up a forum where your users can find items they 
can buy with Ripple. Suggestions are a web forum, a Yahoo group, a 
Google group, or Craigslist. In the case of the latter two public 
forums, if you direct your users to include a special prefix such as 
*VanRipple* (if your service was called VanRipple) with every post, they 
will be able to search specifically for Ripple items. 

9. If you expect a lot of users, remember you can get a lot better 
performance by creating the indexes generated by python manage.py 
sqlindexes and tuning your PostgreSQL installation. See 
http://www.revsys.com/writings/postgresql-performance.html. 

  Note: This documentation may be out of date.
        I think django head does indexes automatically
        (Double check this before deleting point 9 though.)

Contact Info 
------------ 

If you need help getting your Ripple site set up, have a feature request 
to make, or better yet, have some improvements to the code that you wish 
to contribute to the project (I should be so lucky), please post to the 
Ripple project forums at https://sourceforge.net/forum/?group_id=120019. 
I am also currently (Feb. 2007) working on a P2P version of Ripple to 
eventually be integrated with RippleSite, if anyone would like to help. 

Ideas for Improvements 
---------------------- 

If you feel like improving the code, here are some ideas for things to 
work on: 

* improve the site design and layout (I'm not a web designer)
* write an installation script 
* integrate admin-driven news items into the front page 
* paginate payment history in both account and payment views 
* allow user to request payment from other users 
* allow multiple accounts between two users (may simply be a case of 
removing the check for this when creating new account and testing 
that it works with payments) 
* allow users to view current conversion rates 
* allow users to print up certificates and/or generate codes that may 
be given to other users and redeemed on the system, for face-to-face 
transactions 
* translations into other languages 
* make email notifications optional and/or encrypt them with user's 
PGP key 
* security question for resetting password 
* longer confirmation/forgot password codes 
* credit/reputation checks - request permission from user to find out 
maximum amount they could pay you 
* contact form on contact page 
* improve test-cookie login handling (these test sessions build up and 
have to be cleared periodically) 
* change account units 
* transfer between accounts 
* invite-only registrations 
* resend invitation or receipt 
* split off user/login info from Node model and use builtin Django User 
instead 

About

sourcecode of ripplepay.com, till now under svn, I'm putting it under git.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published