The Rails application that powers OpenStreetMap
Find a file
2008-01-23 11:44:34 +00:00
app Make things work with multipart keys. 2008-01-23 09:53:35 +00:00
config Revert to rails 2.0.1 again 2008-01-22 18:00:30 +00:00
db adds two migrations to create old_node_tags and node_tags table and indexes. Does not change existing table structure or populate tables with any data 2008-01-23 11:41:56 +00:00
doc beginning of osm on rails 2006-07-28 21:41:39 +00:00
lib rake task to populate node_tags and current_node_tags tables with values from the nodes and current_nodes tables. migration 011 and 012 must be applied before this task. 2008-01-23 11:44:34 +00:00
public few bits of tidying 2008-01-23 01:49:22 +00:00
script Stop trying to report on the number of ways with tags because (a) almost all 2008-01-07 00:33:54 +00:00
spec added some tests 2008-01-22 18:46:41 +00:00
stories added rspec folder/files 2008-01-22 16:55:14 +00:00
test Merge rails_port as of r4613 & fix tests. 2007-09-20 14:37:29 +00:00
vendor/gems/rspec-1.1.2 added RSpec and RSpec on Rails 2008-01-22 16:39:09 +00:00
Rakefile beginning of osm on rails 2006-07-28 21:41:39 +00:00
README You need at least version 0.9.1 of the composite keys gem. 2008-01-23 09:54:21 +00:00

INSTALL
=======

* get rails working (http://www.rubyonrails.org/)

* make your db (see db/README)

* install ruby libxml bindings:

   # sudo aptitude install libxml-ruby1.8 libxml-parser-ruby1.8

* install primary keys plugin for active record (minimum version 0.9.1)
  
  # sudo gem install composite_primary_keys

* make sure you have a MTA listening on localhost:25 if you want mail

* script/server

* thats it

API CHANGES FOR EDITOR AUTHORS
==============================

See

http://wiki.openstreetmap.org/index.php/REST#Changes_in_the_upcoming_0.4_API

HACKING
=======

log in to your site (proably localhost:3000)

create a user and confirm it

you want to play with the API (probably at localhost:3000/api/0.4/node/create etc)

Lots of tests are needed to test the API.

Lots of little things to make the site work like the old one.

Also see the 'rails_port' component for bugs:
http://trac.openstreetmap.org/query?status=new&status=assigned&status=reopened&component=rails_port&order=priority