项目作者: Descartess

项目描述 :
Python Flask application with a Postgresql database exposing a REST API
高级语言: Python
项目地址: git://github.com/Descartess/BucketList-REST-API.git
创建时间: 2017-07-18T06:21:45Z
项目社区:https://github.com/Descartess/BucketList-REST-API

开源协议:GNU General Public License v3.0

下载


BucketList-REST-API

Build Status
Coverage Status

BucketList is a web application designed to help one to record, edit, update activities one desires to accomplish before reaching a certain age. This application exposes a rest API which can be consumed

This is deployed on heroku with a base url http://descartes-bucketlist.herokuapp.com/

Technologies

  1. Python 2.7
  2. Flask 0.12.2
  3. Nosetests
  4. Postgresql
  5. Swagger

Getting Started

These are instructions on how to set up the application on a local development machine.

  1. Clone the repository
    1. git clone https://github.com/Descartess/BucketList-REST-API.git
  2. Install the dependencies
    1. pip install -r requirements.txt
  3. Set up environment variables DATABASE_URL and DATABASE_TEST_URL
  4. Run the application
    1. python manage.py runserver
  5. Create database
    1. # This is done for only the initial installation
    2. python manage.py recreate_db

Documentation

The API documentation can be found at http://descartes-bucketlist.herokuapp.com/apidocs/

  1. http://localhost:5000/apidocs/

Features

  • Users can create accounts
  • Users can sigin and signout of application
  • Users can create,edit,view and delete bucket lists
  • Users can create,edit,view and delete bucket list items
  • Users can search bucketlists
  • Users can use pagination
  • Users can reset passwords

Testing

To run tests

  1. Run tests
    ```

    in root directory

nosetests tests
```