Skip to content

adamsdenniskariuki/bucketlist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status Codacy Badge Code Health

Bucket list API:

This is an API that allows a user to create a bucket list and add items to it.

Prerequisites

- Provides the interpreter for the bucket list application.
- Creates a virtual environment to deploy the application.
- Framework the application uses to create the API

Optional tools to test the API

- Postman: https://www.getpostman.com/postman

- Curl: http://pycurl.io/

Deployment

- Clone the repo

- Navigate to the installation folder in the shell

- Create the environment in the shell using: virtualenv -p python3 virtual_env

- Install all the dependencies in the shell using: pip install -r requirements.txt

- Edit config.py with the necessary configurations

- Run data base migrations using the following commands

    - python3 ./manage.py db init

    - python3 ./manage.py db migrate

    - python3 ./manage.py db upgrade

- Run the app using python3 ./run.py

- Use Curl or Postman to test the API

API Endpoints

- 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/<id>                         Get single bucket list

- PUT /bucketlists/<id>                         Update this bucket list

- DELETE /bucketlists/<id>                      Delete this single bucket list

- POST /bucketlists/<id>/items/                 Create a new item in bucket list

- PUT /bucketlists/<id>/items/<item_id>         Update a bucket list item

- DELETE /bucketlists/<id>/items/<item_id>      Delete an item in a bucket list

Feedback

- Please leave a comment!

Author

- Adams Kariuki Dennis (c) 2017

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages