Giter VIP home page Giter VIP logo

cp2-bucketlist's Introduction

Build Status Coverage Status Code Health license PyPI Codacy Badge

Bucketlist

Bucketlist is a Flask API application that helps individuals keep track of that elusive white whale. The application allows users to list activities they'd like to do before they die. This API provides endpoints facilitating registration, login, create and manage bucket lists and their items.

Installation

Clone this repo:

$ git clone https://github.com/https://github.com/Andela-eugene/cp2-bucketlist.git

Change into the bucketlist directory:

$ cd bucketlist

Create the bucketlist vitual environment:

Click on this guide. The link will guide you create and activate the virtual environment

Install the required packages:

$ pip install -r requirements.txt

Set the required environment keys

$ export BUCKETLIST_SECRET_KEY="any_random_string"
$ export BUCKETLIST_SQLALCHEMY_DATABASE_URI='url_of_the_main_bucketlist_database'
$ export TEST_BUCKETLIST_SQLALCHEMY_DATABASE_URI='url_of_the_test_bucketlist_database'

Application Configuration

The run environment associated with the application can either be development, testing or production. The environment dictate how the application will run. This environments are setup in the config.py file.

Usage

Run python manage.py runserver.

Test API

Use an API Client such as Postman or Insomnia to test the endpoints.

API Endpoints

Actions Description Requires Authentication
POST auth/login Log a user in False
POST auth/register Register a new user False
POST api/v1/bucketlists/ Create a new bucketlist True
GET api/v1/bucketlists/ List all created bucketlists True
GET api/v1/bucketlists/<string:bucket_id> get single bucketlist True
PUT api/v1/bucketlists/<string:bucket_id> update single bucketlist True
DELETE api/v1/bucketlists/<string:bucket_id> Delete a single bucketlist True
POST api/v1/bucketlists/<string:bucket_id>/items Create a new item in a bucketlist True
PUT api/v1/bucketlists/update-item/<string:item_id> Update an item in a bucketlist True
DELETE api/v1/bucketlists/items/<string:item_id> Delete an item in a bucketlist True
GET /api/v1/bucketlists/items/<string:bucket_id> Get items in a bucketlist True
GET api/v1/users/ Get all users True
GET api/v1/user/<string:user_id> Get a single user True
PUT api/v1/user/<string:user_id> Update a user True
DELETE api/v1/delete_user/<string:user_id> Delete a user True

Built With...

License

The MIT License (MIT)

Copyright (c) 2017 Eugene Liyai.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

cp2-bucketlist's People

Contributors

e-liyai avatar

Stargazers

jean luc tuyishime avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.