Skip to content

Alweezy/cp2-bucketlist-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

109 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Build Status license Coverage Status


cp2-bucketlist-api

A Bucket List is a list of things that one has not done before but wants to do before dying(kicking the bucket)​. This project is an API for an online Bucket List service created using the python framework, Flask.


Prerequisites

  • PostgreSQL
  • Python 3.6

Installation

clone the repo:

$ git clone https://github.com/Alweezy/cp2-bucketlist-api.git

and cd into the folder:

$ /cp2-bucketlist-api

create a virtual environment for the project.

$ virtualenv --python=python3.6 virtualenv-name

and activate virtual environment

$ source virtualenv-name/bin/activate

Alternatively you can create it using virtualenvwarapper if installed:

$ mkvirtualenv --python=python3.6 virtualenv-name

It will be automatically activated, in the future to use it just type:

$ workon virtualenv-name

Run the command $ pip install -r requirements.txt to install necessary libraries.

Create the database by running thr command $ createdb flask_api:

Handle migrations by running the following commands one after the other:

$ python manage.py db init
$ python manage.py db migrate
$  python manage.py db upgrade

Api Endpoints

Endpoint Functionality
POST /auth/login Logs a user in
POST /auth/register Register a user
POST /bucketlists/ Create a new bucket list
GET /bucketlists/ List all the created bucket lists
GET /bucketlists/ Get single bucket list
PUT /bucketlists/ Update this bucket list
DELETE /bucketlists/ Delete this single bucket list
GET /bucketlists//items/<item_id> Get a single bucket list item
POST /bucketlists//items/ Create a new item in bucket list
PUT /bucketlists//items/<item_id> Update a bucket list item

Lincense

This project is distributed with the MIT LICENCE

About

BucketList Server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages