Merge pull request #3 from TrigonaMinima/master

apidocs
Delete apidocs.md
add a gitter chat badge

click on this and join the conversation !
Added a database schema

With 3 tables: users, ideas, comments
Merge pull request #8 from jdevlabs/db-schema

Added a database schema
Delete .gitignore
Initial project structure

With a simple DB model for User and other standard files.

I am still trying to work on the project structure that should be used
for the project. So expect frequent changes...
Improved structure

The entire 'IdeaBin' application will be broken into two parts:

The 'server' or the API and the 'client'. As already decided we'll first
be working on the API server. Once the server has been created we can
easily create clients like a website or a mobile application for any of
the platforms.

The current project structure has been taken from the Official Flask
wiki itself: https://github.com/mitsuhiko/flask/wiki/Large-app-how-to

API resources will be placed in the 'server' folder in a separate folder
of their own just like 'server\users\' So we'll have something like
'server\ideas\' and 'server\comments'.

Read the above doc for detailed explanation.

We still haven't brought the API views into play, so let's see how they
will change the game...
Added Unit Tests. Yay!

A new directory has been created which will host all our tests.

See a sample test present in 'tests\users.py'

All .py files present in the 'tests' folder are automatically imported
so all you have to do is write a test and place it in the folder.
e.g: 'tests\ideas.py' could be used to test our ideas related features.

To run the tests, just run 'test.py'
Use UUID instead of Int as key in the Users model
Added a Users view with some basic endpoints

The application is now beginning to take some shape.
run.py starts the flask app at 127.0.0.1:9999

The Users model has been updated with more columns from the db schema.
Two new methods - 'update' and 'json' have been added.

The view currently contains two GET endpoints which can be accessed
from /api

For handling the UUID as a part of the url, a UUID url converter for
Flask has been used from: https://github.com/wbolster/flask-uuid
Code refactoring and misc changes

User model:

 The id field has been renamed to user_id.
 The update() method now supports variable no of arguments.
 json() method has been turned to a property.

User view:

 All endpoints now have a trailing slash.
 The /users and /users/user_id endpoints are routed to a single
 method which then handles them separately.

Tests:

 The update test now uses variable arguments and resets the changes.
 The db can now be deleted via the code itself.
Separated get_users() view into different methods

get_users() was getting too crowded, so I separated different request
methods.

Also added a 405 error handler.

All errorhandlers and execptions will later go into separate files.
Update README.md
Update README.md
Added .travis.yml

With multiple python versions and nosetests

Closes #15
Added __init__ files and fixed a typo

Every directory requires an __init__ file.
Merge branch 'travis'
Travis now tests only for python 3.3
fetched