|
From: Ryan F. <rf...@gm...> - 2007-04-11 17:11:08
|
Hi Kasper. That's awesome that you can help out! I'm cc'ing the ripple-implementation list which is for technical discussions of ripplesite. You should subscribe to that list at http://sourceforge.net/mail/?group_id=120019. (There's also a ripple p2p implementation that I'm working on that will eventually merge with ripplesite's front end and replace its local payment and routing with distributed versions. I'm developing that much more actively at the moment. Let me know if you'd prefer to help with that. I'm using twisted for networking and sqlalchemy as an ORM.) The latest ripplesite codebase has been ported to Django 0.95 and is available by svn from: http://svn.ripplepay.com/ripplesite/ login as guest/guest. I'll set up commit privileges for you as necessary. I haven't packaged this code as a sourceforge release yet because it hasn't been completely tested. I see that Django has released version 0.96, which looks very compatible with 0.95 code, so we should probably be using that. I also have a trac instance that I used awhile back that I can and will revamp for ripplesite development. On 4/11/07, Kasper Souren <kas...@gm...> wrote: > > I'm one of the core developers of CouchSurfing and I would like to > help out with Ripple. I have quite some experience with Python, > but I've never used Django. Django has an excellent tutorial and documentation at: http://www.djangoproject.com/documentation/ > > But I'm running Windows with Cygwin. So I have some questions before > I try to get Apache and PostgreSQL up and running: > * Has anyone managed to run Ripple with sqlite3? How would I go ahead > to make this happen? Right now the code bypasses the django db module and uses the psycopg Postgres python DB-API module directly (a holdover from django 0.91 which didn't support transactions directly). Replacing psycopg with pysqlite in those places (payment.py and routing.py) could very well work. William Waites has made a start incorporating django transactions into the code (see the 'Ripplepay + Dialstation' thread of rippleusers for code attachments), but reports that it isn't working yet. > * Is Django able to serve pages without Apache? Yes. It has a built-in development server. You'll need to tweak it a bit to serve images and css though: http://www.djangoproject.com/documentation/static_files/ > * Are there provisions for testing stuff? Is there a test database? Will a > local installation try to send out emails to people? So far backend testing has been semiautomated using testutil.py, which allows you to populate a database from the command line, run a sequence of random payments against it, and then verify the results. I've only tested the web interface manually so far. Django 0.96 apparently has an integrated test module that may help us with more automation. A local installation will try to send emails when testing the web interface (but not when just doing backend command line testing). What I've done so far is use a gmail account: if your gmail username is 'kasper', you can send email to 'kasper+1', 'kasper+2', or 'kasper+xxxxx' and they'll all get to the same account. Ryan |