rSimulate / Cosmosium

:earth_americas: js game engine for space-based games
Other
23 stars 7 forks source link

Use POST/GET methods to Manipulate Storage, starting with web forms. Examples within #58

Closed iontom closed 9 years ago

iontom commented 10 years ago

Making myself an issue so I have a place to keep references

Using this lib as reference https://github.com/srackham/bottle-mongodb-example

Craft a POST call similar to: https://github.com/srackham/bottle-mongodb-example/blob/master/controllers.py Line 34: @post('/create') def create():

Create form(s) that call the POST function https://github.com/srackham/bottle-mongodb-example/blob/master/views/list.mako <%def name="create_form()">

Use these post updates to make changes in the data. Editing a user profile might be the easiest first example. Also, IMPORTANT, find ways to make routine POST calls occur at some interval without forms involved, possibly tied to AJAX calls. This is how we will store game state data (per each instance too) [I may need help on AJAX stuff]
7yl4r commented 9 years ago

I think @martinkronberg has this working now with user creation, right? I just created #73 specific to user-profile edits.