GithubHelp home page GithubHelp logo

isabella232 / potlatch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openstreetmap/potlatch

0.0 0.0 0.0 712 KB

Mirror of Potlatch's subversion repository

Home Page: http://svn.openstreetmap.org/applications/editors/potlatch/

ActionScript 75.48% Perl 24.52%

potlatch's Introduction

NOTE:
The Potlatch 2 source code has moved.  Please see:
http://wiki.openstreetmap.org/wiki/Potlatch_2/Developer_Documentation
http://git.openstreetmap.org/potlatch2.git/





============================================================================
============================================================================
============================================================================
============================================================================
============================================================================
============================================================================
============================================================================
============================================================================
============================================================================
============================================================================



== Compiling Potlatch ==

=== Requirements ===

You will need Ming (www.libming.net) and the Perl bindings.

=== Against a local installation ===

If you have the Rails port (full OSM codebase) set up on your machine, it's best to run Potlatch directly against that.

To compile Potlatch, simply run:
	perl potlatch.pl /path/to/rails_port/public/potlatch/potlatch.swf
	
If you'd like to enable a debug window, add --trace:
	perl potlatch.pl --debug /path/to/rails_port/public/potlatch/potlatch.swf

You can write to the debug window from the Potlatch source like this:
	_root.chat.text="Some text";
	
If you're using Ming 0.3, add --ming3 to ensure that line widths are correct.

=== Against the main OSM server ===

You can also run Potlatch locally, talking to the main openstreetmap.org server. In this case, to compile it, run:
	perl potlatch.pl --absolute potlatch.swf
	
This will compile the SWF to the current source directory. Then, to run Potlatch, open test.html in your web browser.

Note that Flash Player has (really annoying) security restrictions that may prevent your local machine talking to a remote server, and vice versa. So on my OS X machine:
	
	file:///Users/richard/Sites/potlatch/test.html - DOESN'T WORK
	http://127.0.0.1/~richard/potlatch/test.html - works
	http://localhost/~richard/potlatch/test.html - works
	

== Authentication ==

When Potlatch is run on the OSM site (or your local install of the same), it gets a token from Rails which it uses to authenticate.

If you're running it locally without a full install of the Rails port, you won't have a token. Happily, Potlatch can also authenticate by user ID and password.

To do this, find the reference to 'token' in test.html:
    fo.addVariable('token','VeSiWDkofUzgLLx5DgAU4rh1Wn23ro');

and change it to:
    fo.addVariable('token','your_username:your_password');



Richard Fairhurst
[email protected]

potlatch's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.