| | 1 | |
| | 2 | = Foto Purchase example Site = |
| | 3 | == An Online Demonstration of FPyS with TurboGears == |
| | 4 | |
| | 5 | FPeS is the first working example of FPyS with a live site. It is a drop dead simple |
| | 6 | application that is wired up to the Amazon FPS Sandbox instance that allows people to |
| | 7 | choose from several pictures and purchase the ability to download full sized versions |
| | 8 | of those pictures. |
| | 9 | |
| | 10 | FPeS is *not* a legitimate ecommerce site. Users can't currently create real login |
| | 11 | accounts, no money ever exchanges hands, and there is no administrative interface. |
| | 12 | It's sole purpose for being is to prove that the FPyS library is workable in the most |
| | 13 | basic sense. |
| | 14 | |
| | 15 | The application is deployed as a [http://fpes.achievewith.us live demo], and it can be |
| | 16 | checked out of Subversion for installation and inspection by developers. |
| | 17 | |
| | 18 | To check out a copy, do the following: |
| | 19 | |
| | 20 | {{{ |
| | 21 | user@host $ svn co http://achievewith.us/svn/public/fpys/examples/FPeS/ |
| | 22 | user@host $ cd FPeS |
| | 23 | }}} |
| | 24 | |
| | 25 | Before running the application, open dev.cfg and edit the following properties appropriately: |
| | 26 | * aws_access_key_id |
| | 27 | * secret_access_key |
| | 28 | * sqlalchemy.dburi (sqlite is the default) |
| | 29 | |
| | 30 | Next up, run create_caller_token.py: |
| | 31 | {{{ |
| | 32 | user@host $ python create_caller_token.py |
| | 33 | |
| | 34 | Your caller token: CALLER_TOKEN |
| | 35 | }}} |
| | 36 | |
| | 37 | Take the caller token that came out of the last step, open up dev.cfg again, and set |
| | 38 | the `default_caller_token` with your new found value. |
| | 39 | |
| | 40 | At this point, the application should fire up: |
| | 41 | {{{ |
| | 42 | user@host $ python start-fpes.py |
| | 43 | }}} |
| | 44 | |